Mercurial > hg > openttd
changeset 2927:20bdea584ca5 draft
(svn r3483) -Fix: fixed warning about setjmp (tnx Bjarni for testing, and tnx for
taking the effort to commit it)
author | truelight <truelight@openttd.org> |
---|---|
date | Sun, 29 Jan 2006 22:42:17 +0000 |
parents | 86300d12e34d |
children | 6a7dbba467e4 |
files | saveload.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/saveload.c +++ b/saveload.c @@ -1290,7 +1290,7 @@ */ 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 @@ 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);