From b7beb3d87d68e6a6846a1c88d704763f824125a6 Mon Sep 17 00:00:00 2001 From: truelight Date: Sun, 29 Jan 2006 22:42:17 +0000 Subject: (svn r3483) -Fix: fixed warning about setjmp (tnx Bjarni for testing, and tnx for taking the effort to commit it) --- saveload.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/saveload.c b/saveload.c index 8e00bcfcd..5e0988a60 100644 --- a/saveload.c +++ b/saveload.c @@ -1290,7 +1290,7 @@ static Thread* save_thread; */ static void* SaveFileToDisk(void *arg) { - const SaveLoadFormat *fmt = GetSavegameFormat(_savegame_format); + const SaveLoadFormat *fmt; uint32 hdr[2]; if (arg != NULL) OTTD_SendThreadMessage(MSG_OTTD_SAVETHREAD_START); @@ -1307,6 +1307,8 @@ static void* SaveFileToDisk(void *arg) return NULL; } + fmt = GetSavegameFormat(_savegame_format); + /* We have written our stuff to memory, now write it to file! */ hdr[0] = fmt->tag; hdr[1] = TO_BE32(SAVEGAME_VERSION << 16); -- cgit v1.2.3-70-g09d2