aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus')
-rw-r--r--engines/pegasus/pegasus.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp
index da2f09e6c5..f5efbc0651 100644
--- a/engines/pegasus/pegasus.cpp
+++ b/engines/pegasus/pegasus.cpp
@@ -541,7 +541,7 @@ bool PegasusEngine::writeToStream(Common::WriteStream *stream, int saveType) {
byte biochipCount = _biochips.getNumItems();
stream->writeByte(biochipCount);
- if (itemCount > 0) {
+ if (biochipCount > 0) {
for (uint32 i = 0; i < biochipCount; i++)
stream->writeUint16BE(_biochips.getItemIDAt(i));