diff --git a/src/blua/liolib.c b/src/blua/liolib.c
index 489a4ae162909fb58011c4b1fa9fbd11f97a6d10..74bedc060f2be972f545401eadb745b5f4820390 100644
--- a/src/blua/liolib.c
+++ b/src/blua/liolib.c
@@ -325,7 +325,7 @@ void Got_LuaFile(UINT8 **cp, INT32 playernum)
 		else
 		{
 			// Send a net command with 0 as its first byte to indicate the file couldn't be opened
-			UINT8 success = 0;
+			success = 0;
 			SendNetXCmd(XD_LUAFILE, &success, 1);
 		}
 	}