Skip to content
Snippets Groups Projects
Commit 03deafb2 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3199 51575b47-30f0-44d4-a5cc-537603b46e54
parent 563b3ea9
No related branches found
No related tags found
No related merge requests found
......@@ -630,8 +630,12 @@ function _M:changeLevel(lev, zone, keep_old_lev, force_down)
if self.level.data.day_night then self.state:dayNightCycle() end
end
function _M:getPlayer()
return self.party:findMember{main=true}
function _M:getPlayer(main)
if main then
return self.party:findMember{main=true}
else
return self.player
end
end
--- Clones the game world for chronomancy spells
......
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