mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r2651) - Fix: [ 1220776 ] Removes warning when compiling saveload.c on some GCC versions (glx). This only works as long as there is only 1 saving thread active, as is the case now.
This commit is contained in:
parent
f09638ad3d
commit
c1f63a289a
@ -1235,9 +1235,11 @@ static bool SaveFileToDisk(void *ptr)
|
|||||||
const SaveLoadFormat *fmt = GetSavegameFormat(_savegame_format);
|
const SaveLoadFormat *fmt = GetSavegameFormat(_savegame_format);
|
||||||
/* XXX - backup _sl.buf cause it is used internally by the writer
|
/* XXX - backup _sl.buf cause it is used internally by the writer
|
||||||
* and we update it for our own purposes */
|
* and we update it for our own purposes */
|
||||||
byte *tmp = _sl.buf;
|
static byte *tmp = NULL;
|
||||||
uint32 hdr[2];
|
uint32 hdr[2];
|
||||||
|
|
||||||
|
tmp = _sl.buf;
|
||||||
|
|
||||||
SaveFileStart();
|
SaveFileStart();
|
||||||
|
|
||||||
/* XXX - Setup setjmp error handler if an error occurs anywhere deep during
|
/* XXX - Setup setjmp error handler if an error occurs anywhere deep during
|
||||||
|
Loading…
Reference in New Issue
Block a user