From 871a3ec42d21d9ba0b107a36ee49857ad22e6079 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sun, 15 Mar 2015 01:37:17 +0200 Subject: [PATCH] Fix performance warning --- LuaEngine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LuaEngine.h b/LuaEngine.h index 5604938..32a9789 100644 --- a/LuaEngine.h +++ b/LuaEngine.h @@ -271,7 +271,7 @@ public: void RunScripts(); bool ShouldReload() const { return reload; } bool IsEnabled() const { return enabled && IsInitialized(); } - bool HasLuaState() const { return L; } + bool HasLuaState() const { return L != NULL; } void Register(uint8 reg, uint32 id, uint64 guid, uint32 instanceId, uint32 evt, int func, uint32 shots); // Non-static pushes, to be used in hooks.