From 85fb2bff38b2ef6cb17e86c5f602ee09a365b117 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Wed, 28 Aug 2019 00:57:57 -0400 Subject: Added LuaBridge support --- src/Script/entityx/EntityLua.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Script/entityx') diff --git a/src/Script/entityx/EntityLua.hpp b/src/Script/entityx/EntityLua.hpp index c957252..780f051 100644 --- a/src/Script/entityx/EntityLua.hpp +++ b/src/Script/entityx/EntityLua.hpp @@ -48,7 +48,7 @@ namespace entityx // Now the ComponentHandler should be at #-2 of stack (-1 is the metatable), this will be used as up-values lua_pushvalue(L, -2); // Also remember the offset - int offset = ComponentHelper::offset(ptr); + int offset = typename ComponentHelper::offset(ptr); lua_pushinteger(L, offset); lua_pushcclosure(L, [](lua_State* L){ // This function is used as both getter and setter: -- cgit v1.2.3