summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-06-05 16:06:06 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-06-08 11:47:19 (GMT)
commite182e7422cc5670dc9217ac12bba7ba12542678d (patch)
tree9d0b3352e9f86630ac1f89c349d3292c27a1f254 /src/main.c
parent43a4544a13e54f3ffb89a06466b6a77afd2e6ff3 (diff)
downloadpowder-e182e7422cc5670dc9217ac12bba7ba12542678d.zip
powder-e182e7422cc5670dc9217ac12bba7ba12542678d.tar.gz
Loads of error messages for lua, and hopefully fix lua stack overflow
Also fix game exiting when an error occurs in a step function. Returning -1 seems to prevent lua from restoring the stack to the state it was in before the C function call - see bottom of luaD_precall() in lua source (ldo.c)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e2d681c..08f0f5c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1529,7 +1529,7 @@ int main(int argc, char *argv[])
void *http_ver_check, *http_session_check = NULL;
char *ver_data=NULL, *check_data=NULL, *tmp;
//char console_error[255] = "";
- int result, i, j, bq, fire_fc=0, do_check=0, do_s_check=0, old_version=0, http_ret=0,http_s_ret=0, major, minor, old_ver_len, new_message_len;
+ int result, i, j, bq, fire_fc=0, do_check=0, do_s_check=0, old_version=0, http_ret=0,http_s_ret=0, major, minor, old_ver_len, new_message_len=0;
#ifdef INTERNAL
int vs = 0;
#endif