aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/extantz/scenri.c2
-rw-r--r--src/libraries/Runnr.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/extantz/scenri.c b/src/extantz/scenri.c
index f871500..d37667b 100644
--- a/src/extantz/scenri.c
+++ b/src/extantz/scenri.c
@@ -242,7 +242,7 @@ static int _finishStuffs(lua_State *L)
242 char *uuid, *name, *file, *description, *owner, *mesh; 242 char *uuid, *name, *file, *description, *owner, *mesh;
243 int type, fake; 243 int type, fake;
244 244
245 pull_lua(L, 1, "$ $ $ $ $ $ % % ", &uuid, &name, &file, &description, &owner, &mesh, &type, &fake); 245 pull_lua(L, 1, "$ $ $ $ $ $ % %", &uuid, &name, &file, &description, &owner, &mesh, &type, &fake);
246 lua_getfield(L, LUA_REGISTRYINDEX, "sceneData"); 246 lua_getfield(L, LUA_REGISTRYINDEX, "sceneData");
247 scene = (Scene_Data *) lua_touserdata(L, -1); 247 scene = (Scene_Data *) lua_touserdata(L, -1);
248 248
diff --git a/src/libraries/Runnr.c b/src/libraries/Runnr.c
index fbd4289..5ec5a9c 100644
--- a/src/libraries/Runnr.c
+++ b/src/libraries/Runnr.c
@@ -815,7 +815,7 @@ int push_lua(lua_State *L, char *params, ...) // Stack usage [-0, +n, em]
815 va_list vl; 815 va_list vl;
816 char *f = strdup(params); 816 char *f = strdup(params);
817 char *p = f; 817 char *p = f;
818 int n = 0, table = 0, i = -1, needTrace = 0, _T; 818 int n = 0, table = 0, i = -1, needTrace = 0, _T = 0;
819 819
820 if (!f) return -1; 820 if (!f) return -1;
821 821
@@ -823,7 +823,7 @@ int push_lua(lua_State *L, char *params, ...) // Stack usage [-0, +n, em]
823 while (*p) 823 while (*p)
824 { 824 {
825 p++; 825 p++;
826 if ('0' == *p) 826 if (')' == *p)
827 { 827 {
828 lua_pushcfunction(L, traceBack); 828 lua_pushcfunction(L, traceBack);
829 _T = lua_gettop(L); 829 _T = lua_gettop(L);
@@ -911,9 +911,9 @@ int push_lua(lua_State *L, char *params, ...) // Stack usage [-0, +n, em]
911 } 911 }
912 case ')': 912 case ')':
913 { 913 {
914 int err; 914 int err = lua_pcall(L, n - 1, va_arg(vl, int), _T);
915 915
916 if ((err = lua_pcall(L, n - 1, va_arg(vl, int), _T))) 916 if (err)
917 printLuaError(err, params, L); 917 printLuaError(err, params, L);
918 n = 0; 918 n = 0;
919 set = EINA_FALSE; 919 set = EINA_FALSE;