From 3a6b8a3491defe0f9c9cdf8961780e350c11a679 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Mon, 6 Mar 2017 20:49:35 +0200 Subject: [PATCH] Fix TC build after https://github.com/TrinityCore/TrinityCore/commit/7567cafec84080d26ea513242a1f540a823b8f9d --- GlobalMethods.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GlobalMethods.h b/GlobalMethods.h index cb2d835..58ba801 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -123,7 +123,11 @@ namespace LuaGlobalFunctions */ int GetGameTime(Eluna* /*E*/, lua_State* L) { +#ifdef TRINITY + Eluna::Push(L, GameTime::GetGameTime()); +#else Eluna::Push(L, eWorld->GetGameTime()); +#endif return 1; }