mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7716] Fixed some typos and possible crashes.
This commit is contained in:
parent
c2e6dd20dd
commit
c9d51a6dc7
25 changed files with 281 additions and 263 deletions
|
|
@ -553,7 +553,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);
|
||||
|
|
@ -1375,7 +1375,7 @@ bool ChatHandler::HandleNpcMoveCommand(const char* args)
|
|||
if(!cId)
|
||||
return false;
|
||||
|
||||
uint32 lowguid = atoi(cId);
|
||||
lowguid = atoi(cId);
|
||||
|
||||
/* FIXME: impossibel without entry
|
||||
if(lowguid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue