fix a bug with menus

This commit is contained in:
Andrew Pamment 2018-06-12 17:06:49 +10:00
parent 07b5568037
commit 760fef49b2

View File

@ -343,8 +343,8 @@ int menu_system(char *menufile) {
continue; continue;
} }
lRet = (char *)lua_tostring(L, -1); lRet = (char *)lua_tostring(L, -1);
c = lRet[0];
lua_pop(L, 1); lua_pop(L, 1);
c = lRet[0];
} }
for (i=0;i<menu_items;i++) { for (i=0;i<menu_items;i++) {