Skip to content

Commit

Permalink
[c13072] Fix possible crash due to null pointer dereference
Browse files Browse the repository at this point in the history
(based on commit [12859] - 64b3570)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
DomGries authored and xfurry committed Jul 8, 2015
1 parent c8a14d0 commit 88300f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/MailHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bool WorldSession::CheckMailBox(ObjectGuid guid)
Creature* creature = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_NONE);
if (!creature)
{
DEBUG_LOG("%s not found or %s can't interact with him.", creature->GetGuidStr().c_str(), GetPlayer()->GetGuidStr().c_str());
DEBUG_LOG("Creature %s not found or %s can't interact with him.", guid.GetString().c_str(), GetPlayer()->GetGuidStr().c_str());
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "13071"
#define REVISION_NR "13072"
#endif // __REVISION_NR_H__

0 comments on commit 88300f7

Please sign in to comment.