Navigation Menu

Skip to content

Commit

Permalink
ArcScripts: add ASSERT to sEAS::SpawnCreature. It should always be gi…
Browse files Browse the repository at this point in the history
…ven a valid Player.
  • Loading branch information
Artox committed Sep 14, 2012
1 parent 08ff201 commit acfbd5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/scripts/src/Common/EasyFunctions.h
Expand Up @@ -118,8 +118,7 @@ class SCRIPT_DECL EasyFunctions
Creature* SpawnCreature(Player* pThis, uint32 entry, float posX, float posY, float posZ, float posO, uint32 duration = 0, uint32 phase = 1)
{
PrintMessage("Function call: SpawnCreature()");
if(pThis == NULL)
return NULL;
ARCEMU_ASSERT(pThis != NULL);

CreatureProto* p = CreatureProtoStorage.LookupEntry(entry);

Expand Down Expand Up @@ -366,4 +365,4 @@ class SCRIPT_DECL EasyFunctions

#define sEAS EasyFunctions::GetInstance()

#endif
#endif

0 comments on commit acfbd5c

Please sign in to comment.