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