aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2012-01-14 23:58:59 +0100
committerTorbjörn Andersson2012-01-14 23:58:59 +0100
commit6530da3feb294eaad413635e819286495fc017a3 (patch)
tree79b6e61b87d06f73bc5f5d95bf558e0974dcd10a /engines
parentba1396954d64306578f4459f2aa418b6055c1dd2 (diff)
downloadscummvm-rg350-6530da3feb294eaad413635e819286495fc017a3.tar.gz
scummvm-rg350-6530da3feb294eaad413635e819286495fc017a3.tar.bz2
scummvm-rg350-6530da3feb294eaad413635e819286495fc017a3.zip
LURE: Move readByte() call out of assert()
Diffstat (limited to 'engines')
-rw-r--r--engines/lure/hotspots.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp
index 2f6d0f23aa..c7e7e81900 100644
--- a/engines/lure/hotspots.cpp
+++ b/engines/lure/hotspots.cpp
@@ -2334,9 +2334,11 @@ void Hotspot::saveToStream(Common::WriteStream *stream) {
void Hotspot::loadFromStream(Common::ReadStream *stream) {
if (_data)
_data->npcSchedule.loadFromStream(stream);
- else
+ else {
// Dummy read of terminator for empty actions list
- assert(stream->readByte() == 0xff);
+ byte dummy = stream->readByte();
+ assert(dummy == 0xff);
+ }
_pathFinder.loadFromStream(stream);