aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/rooms.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp
index 18fd64e32c..10cb988f6b 100644
--- a/engines/supernova/rooms.cpp
+++ b/engines/supernova/rooms.cpp
@@ -57,7 +57,7 @@ bool Room::serialize(Common::WriteStream *out) {
out->writeByte(_sentenceRemoved[i]);
int numObjects = 0;
- while ((_objectState[numObjects]._id != INVALIDOBJECT) && (numObjects < kMaxObject))
+ while ((numObjects < kMaxObject) && (_objectState[numObjects]._id != INVALIDOBJECT))
++numObjects;
out->writeSint32LE(numObjects);