Fix cyanigosa's event end crash.

--HG--
branch : trunk
This commit is contained in:
Tartalo
2009-10-17 23:03:37 +02:00
parent a92bbe0913
commit f21f47005d

View File

@@ -202,8 +202,8 @@ struct TRINITY_DLL_DECL instance_violet_hold : public ScriptedInstance
if (data == DONE)
{
SaveToDB();
GameObject* pMainDoor = instance->GetGameObject(uiMainDoor);
pMainDoor->SetGoState(GO_STATE_ACTIVE);
if (GameObject* pMainDoor = instance->GetGameObject(uiMainDoor))
pMainDoor->SetGoState(GO_STATE_ACTIVE);
}
break;
case DATA_WAVE_COUNT: