--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-04-04 15:12:36 -06:00
commit f744c09075
5 files changed
+50 -41

No files matched your search

+10
View File
@@ -30,3 +30,13 @@ void InstanceData::SaveToDB()
CharacterDatabase.PExecute("UPDATE instance SET data = '%s' WHERE id = '%d'", data.c_str(), instance->GetInstanceId());
}
void InstanceData::HandleGameObject(uint64 GUID, bool open, GameObject *go)
{
if(!go)
go = instance->GetGameObjectInMap(GUID);
if(go)
go->SetGoState(open ? 0 : 1);
else
debug_log("SD2: InstanceData: HandleGameObject failed");
}