summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-12-18 23:47:43 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-12-19 12:35:59 (GMT)
commit3c37540cfd9ae212d64704d164a4a4b33b596ef6 (patch)
treef48eee25d43e09c37029dd333cfe7be85f4a68b8 /src
parent61e86ca72d83dbd8494303245b28530fbc488f78 (diff)
downloadpowder-3c37540cfd9ae212d64704d164a4a4b33b596ef6.zip
powder-3c37540cfd9ae212d64704d164a4a4b33b596ef6.tar.gz
Fix undeclared variables in luaconsole.c
Diffstat (limited to 'src')
-rw-r--r--src/luaconsole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c
index 0f4d567..4bfeb4d 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;