diff --git a/src/ui/game/GameScript.cpp b/src/ui/game/GameScript.cpp index a122822..7d0bdeb 100644 --- a/src/ui/game/GameScript.cpp +++ b/src/ui/game/GameScript.cpp @@ -120,7 +120,13 @@ int32_t Script_GetDebugStats(lua_State* L) { } int32_t Script_IsDebugBuild(lua_State* L) { - WHOA_UNIMPLEMENTED(0); +#if defined(NDEBUG) + lua_pushboolean(L, 0); +#else + lua_pushboolean(L, 1); +#endif + + return 1; } int32_t Script_RegisterCVar(lua_State* L) {