From 32f7351d3040e9ae826a94c8124303e147d1bf0f Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sun, 26 Jan 2020 23:11:13 +0200 Subject: [PATCH] Fix TC build --- GameObjectMethods.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GameObjectMethods.h b/GameObjectMethods.h index e5b7973..cf9ed65 100644 --- a/GameObjectMethods.h +++ b/GameObjectMethods.h @@ -194,7 +194,13 @@ namespace LuaGameObject else if (state == 1) go->SetGoState(GO_STATE_READY); else if (state == 2) + { +#ifdef TRINITY + go->SetGoState(GO_STATE_DESTROYED); +#else go->SetGoState(GO_STATE_ACTIVE_ALTERNATIVE); +#endif + } return 0; }