Skip to content
Snippets Groups Projects
Commit 9f884fcc authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@471 51575b47-30f0-44d4-a5cc-537603b46e54
parent 3625a5d3
No related branches found
No related tags found
No related merge requests found
......@@ -185,7 +185,7 @@ function _M:changeLevel(lev, zone)
return
end
if self.zone.on_leave then
if self.zone and self.zone.on_leave then
local nl, nz = self.zone.on_leave(lev, old_lev, zone)
if nl then lev = nl end
if nz then zone = nz end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment