diff options
author | Sven Hesse | 2011-01-22 04:14:33 +0000 |
---|---|---|
committer | Sven Hesse | 2011-01-22 04:14:33 +0000 |
commit | e7006f2cf171c108de1825a7c50e9523c7340e96 (patch) | |
tree | 592354a16aa4faed2c59f4033cbc93109225daa9 | |
parent | 8928dc3cf536a781c8a7ba73b0175bdc185604f4 (diff) | |
download | scummvm-rg350-e7006f2cf171c108de1825a7c50e9523c7340e96.tar.gz scummvm-rg350-e7006f2cf171c108de1825a7c50e9523c7340e96.tar.bz2 scummvm-rg350-e7006f2cf171c108de1825a7c50e9523c7340e96.zip |
GOB: Urban: Save an empty sprite if necessary
svn-id: r55406
-rw-r--r-- | engines/gob/save/saveload_v6.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/gob/save/saveload_v6.cpp b/engines/gob/save/saveload_v6.cpp index 1ce1a2d405..b196881167 100644 --- a/engines/gob/save/saveload_v6.cpp +++ b/engines/gob/save/saveload_v6.cpp @@ -238,6 +238,10 @@ bool SaveLoad_v6::SpriteHandler::set(SaveReader *reader, uint32 part) { } bool SaveLoad_v6::SpriteHandler::get(SaveWriter *writer, uint32 part) { + if (getSize() < 0) + if (!TempSpriteHandler::create(624, 272, true)) + return false; + return writer->writePart(part, _sprite); } |