diff options
| author | raczman <none@none> | 2009-04-18 11:55:47 +0200 | 
|---|---|---|
| committer | raczman <none@none> | 2009-04-18 11:55:47 +0200 | 
| commit | ddcc80bab5b504b0c49b43fe0d4c52301d684ac4 (patch) | |
| tree | 77b7dc569f26eaf666dce480577b5337b2319b6d | |
| parent | 037fd6c50c11fdbaf0a27566b935ab54de7ef950 (diff) | |
Fixed a crash in GOselect.
--HG--
branch : trunk
| -rw-r--r-- | src/bindings/scripts/ScriptMgr.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bindings/scripts/ScriptMgr.cpp b/src/bindings/scripts/ScriptMgr.cpp index 8ab29f769f0..1e8066a5581 100644 --- a/src/bindings/scripts/ScriptMgr.cpp +++ b/src/bindings/scripts/ScriptMgr.cpp @@ -2084,6 +2084,8 @@ bool GossipSelectWithCode( Player *player, Creature *_Creature, uint32 sender, u  TRINITY_DLL_EXPORT  bool GOSelect( Player *player, GameObject *_GO, uint32 sender, uint32 action )  { +    if(!_GO) +	return false;      debug_log("TSCR: Gossip selection, sender: %d, action: %d",sender, action);      Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId]; @@ -2096,6 +2098,8 @@ bool GOSelect( Player *player, GameObject *_GO, uint32 sender, uint32 action )  TRINITY_DLL_EXPORT  bool GOSelectWithCode( Player *player, GameObject *_GO, uint32 sender, uint32 action, const char* sCode )  { +    if(!_GO) +	return false;      debug_log("TSCR: Gossip selection, sender: %d, action: %d",sender, action);      Script *tmpscript = m_scripts[_GO->GetGOInfo()->ScriptId];  | 
