From 5fe762e7cdfd2ca72129abe2eac181ae5402aaff Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Mon, 19 Dec 2011 21:13:54 -0500 Subject: PEGASUS: Fix typo in the save code --- engines/pegasus/pegasus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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)); -- cgit v1.2.3