Core/GameObjects: add script hook when destructable building is damaged.

This commit is contained in:
Supabad
2011-04-09 19:28:36 +02:00
parent 9efac6fe9f
commit a5a545a403
4 changed files with 18 additions and 6 deletions
@@ -1284,7 +1284,7 @@ class go_ulduar_tower : public GameObjectScript
public:
go_ulduar_tower() : GameObjectScript("go_ulduar_tower") { }
void OnDestroyed(Player* /*pPlayer*/, GameObject* go, uint32 /*value*/)
void OnDestroyed(GameObject* go, Player* /*pPlayer*/, uint32 /*value*/)
{
InstanceScript* instance = go->GetInstanceScript();
if (!instance)