Fixed a crash in GOselect.
--HG-- branch : trunk
This commit is contained in:
1 parent
037fd6c50c
commit
ddcc80bab5
1 file changed
+4
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user