Fixing mismatch between format strings and data on some systems

svn-id: r21828
This commit is contained in:
Max Horn 2006-04-12 14:54:31 +00:00
parent cf202049ff
commit 2c3e1fe4ea

View File

@ -1421,7 +1421,7 @@ uint16 Control::parseSaveData(uint8 *srcBuf) {
_skyCompact->fetchCpt(cnt)->status = 0; _skyCompact->fetchCpt(cnt)->status = 0;
if (srcPos - srcBuf != (int32)size) if (srcPos - srcBuf != (int32)size)
error("Restore failed! Savegame data = %lu bytes. Expected size: %d", srcPos-srcBuf, size); error("Restore failed! Savegame data = %lu bytes. Expected size: %d", (long)(srcPos-srcBuf), size);
_skyDisk->refreshFilesList(reloadList); _skyDisk->refreshFilesList(reloadList);
SkyEngine::_systemVars.currentMusic = (uint16)music; SkyEngine::_systemVars.currentMusic = (uint16)music;