From 760fef49b2c5a9fad05147d39d4a07ecce2b09a7 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 12 Jun 2018 17:06:49 +1000 Subject: [PATCH] fix a bug with menus --- src/menus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menus.c b/src/menus.c index 98bf801..fb4bcd6 100644 --- a/src/menus.c +++ b/src/menus.c @@ -343,8 +343,8 @@ int menu_system(char *menufile) { continue; } lRet = (char *)lua_tostring(L, -1); + c = lRet[0]; lua_pop(L, 1); - c = lRet[0]; } for (i=0;i