From 0fb6f31d4e53b6ac194775b13e6d0f553891dccd Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 25 Mar 2016 16:30:12 +0100 Subject: EVENTRECORDER: Fix incorrect check which prevented records from replay --- gui/EventRecorder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gui') diff --git a/gui/EventRecorder.cpp b/gui/EventRecorder.cpp index d0371f5e78..3f91cfa259 100644 --- a/gui/EventRecorder.cpp +++ b/gui/EventRecorder.cpp @@ -330,7 +330,7 @@ bool EventRecorder::openRecordFile(const Common::String &fileName) { } bool EventRecorder::checkGameHash(const ADGameDescription *gameDesc) { - if (_playbackFile->getHeader().hashRecords.size() != 0) { + if (_playbackFile->getHeader().hashRecords.size() == 0) { warning("Engine doesn't contain description table"); return false; } @@ -676,4 +676,3 @@ void EventRecorder::deleteTemporarySave() { } // End of namespace GUI #endif // ENABLE_EVENTRECORDER - -- cgit v1.2.3