Applying agentq's screenshot loading fix to the trunk as well

svn-id: r27816
This commit is contained in:
Sven Hesse 2007-07-01 02:01:19 +00:00
parent b49b2b7db3
commit 6a2bbea165

View File

@ -258,7 +258,10 @@ bool SaveLoad_v3::loadScreenshot(int16 dataVar, int32 size, int32 offset) {
}
in->seek(1040 + varSize * 2);
return loadSprite(*in, size);
bool success = loadSprite(*in, size);
delete in;
return success;
} else
warning("Invalid attempt at loading a screenshot (%d, %d, %d, %d)",