From 6403a38c72cfdb57a25ccd380037034eb831fcff Mon Sep 17 00:00:00 2001
From: LJ Sonic <lamr@free.fr>
Date: Tue, 10 Aug 2021 01:48:26 +0200
Subject: [PATCH] Fix again

---
 src/lua_script.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua_script.c b/src/lua_script.c
index 25e0a8f37b..bf262c0652 100644
--- a/src/lua_script.c
+++ b/src/lua_script.c
@@ -1390,7 +1390,7 @@ static void ArchiveTables(void)
 			if (e == 1)
 				n++; // the table contained a new table we'll have to archive. :(
 			else if (e == 2) // invalid value type
-				CONS_Alert(CONS_ERROR, "Type of value for table %d entry '%s' (%s) could not be archived!\n", i, lua_tostring(gL, -1), luaL_typename(gL, -1));
+				CONS_Alert(CONS_ERROR, "Type of value for table %d entry '%s' (%s) could not be archived!\n", i, lua_tostring(gL, -2), luaL_typename(gL, -1));
 
 			lua_pop(gL, 1);
 		}
-- 
GitLab