diff options
| author | jacksonmj <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) |
| commit | e182e7422cc5670dc9217ac12bba7ba12542678d (patch) | |
| tree | 9d0b3352e9f86630ac1f89c349d3292c27a1f254 /src/main.c | |
| parent | 43a4544a13e54f3ffb89a06466b6a77afd2e6ff3 (diff) | |
| download | powder-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
