aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-12-19 21:13:54 -0500
committerMatthew Hoops2011-12-19 21:13:54 -0500
commit5fe762e7cdfd2ca72129abe2eac181ae5402aaff (patch)
tree318a1f51bf666933feb23d8a274e86ef438fa2bb
parent924e0b32ad80cefb81d1cadc55d389a14430a5a7 (diff)
downloadscummvm-rg350-5fe762e7cdfd2ca72129abe2eac181ae5402aaff.tar.gz
scummvm-rg350-5fe762e7cdfd2ca72129abe2eac181ae5402aaff.tar.bz2
scummvm-rg350-5fe762e7cdfd2ca72129abe2eac181ae5402aaff.zip
PEGASUS: Fix typo in the save code
-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));