diff options
| author | megamage <none@none> | 2009-04-27 18:42:35 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-27 18:42:35 -0500 |
| commit | 09af28301e646bf75b63113129996724550d7dd6 (patch) | |
| tree | a36f7bb0f369c13b71958f40e0247150417ba18e /src/game/Level2.cpp | |
| parent | 5ac67c27f71a7b53fbce92ffdab3adb62b6baf0c (diff) | |
[7716] Fixed some typos and possible crashes. Author: AlexDereka
--HG--
branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
| -rw-r--r-- | src/game/Level2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp index 1d019e3dfbb..e94f752c41f 100644 --- a/src/game/Level2.cpp +++ b/src/game/Level2.cpp @@ -599,7 +599,7 @@ bool ChatHandler::HandleGameObjectDeleteCommand(const char* args) if(owner_guid) { Unit* owner = ObjectAccessor::GetUnit(*m_session->GetPlayer(),owner_guid); - if(!owner && !IS_PLAYER_GUID(owner_guid)) + if(!owner || !IS_PLAYER_GUID(owner_guid)) { PSendSysMessage(LANG_COMMAND_DELOBJREFERCREATURE, GUID_LOPART(owner_guid), obj->GetGUIDLow()); SetSentErrorMessage(true); @@ -1421,7 +1421,7 @@ bool ChatHandler::HandleNpcMoveCommand(const char* args) if(!cId) return false; - uint32 lowguid = atoi(cId); + lowguid = atoi(cId); /* FIXME: impossibel without entry if(lowguid) |
