From 3c37540cfd9ae212d64704d164a4a4b33b596ef6 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Mon, 19 Dec 2011 07:47:43 +0800 Subject: [PATCH] Fix undeclared variables in luaconsole.c --- src/luaconsole.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luaconsole.c b/src/luaconsole.c index 0f4d56738..4bfeb4dbe 100644 --- a/src/luaconsole.c +++ b/src/luaconsole.c @@ -18,6 +18,7 @@ int tptParts, tptPartsMeta, tptElementTransitions; void luacon_open(){ int i = 0, j; char tmpname[12]; + int currentElementMeta, currentElement; const static struct luaL_reg tptluaapi [] = { {"test", &luatpt_test}, {"drawtext", &luatpt_drawtext}, @@ -181,7 +182,6 @@ tpt.partsdata = nil"); tptElementTransitions = lua_gettop(l); for(i = 1; i < PT_NUM; i++) { - int currentElementMeta, currentElement; for(j = 0; j < strlen(ptypes[i].name); j++) tmpname[j] = tolower(ptypes[i].name[j]); tmpname[strlen(ptypes[i].name)] = 0;