diff options
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r-- | src/game/Level2.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index bd09c69af08..9e613de3acc 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -4138,14 +4138,11 @@ bool ChatHandler::HandleTempAddSpwCommand(const char* args) Player *chr = m_session->GetPlayer(); - float x = chr->GetPositionX(); - float y = chr->GetPositionY(); - float z = chr->GetPositionZ(); - float ang = chr->GetOrientation(); - uint32 id = atoi(charID); + if(!id) + return false; - chr->SummonCreature(id,x,y,z,ang,0,TEMPSUMMON_CORPSE_DESPAWN,120); + chr->SummonCreature(id, *chr, TEMPSUMMON_CORPSE_DESPAWN, 120); return true; } |