broken codepage
This commit is contained in:
parent
68cb74767c
commit
151697b99e
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue