broken codepage

This commit is contained in:
p.kosyh 2010-02-01 15:37:51 +00:00
parent 68cb74767c
commit 151697b99e

View file

@ -79,7 +79,7 @@ char *getstring(char *cmd)
if (dostring(L, cmd)) if (dostring(L, cmd))
return NULL; return NULL;
N = lua_gettop(L); /* number of arguments */ N = lua_gettop(L); /* number of arguments */
if (N <=0) if (-N >=0)
return NULL; return NULL;
s = (char*)lua_tostring(L, -N); s = (char*)lua_tostring(L, -N);
if (s) if (s)
@ -239,6 +239,7 @@ int instead_load(char *game)
if (dofile(L, game)) { if (dofile(L, game)) {
return -1; return -1;
} }
instead_clear();
#ifdef _HAVE_ICONV #ifdef _HAVE_ICONV
if (fromcp) if (fromcp)
free(fromcp); free(fromcp);