aboutsummaryrefslogtreecommitdiff
path: root/gui/EventRecorder.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2016-03-25 16:30:12 +0100
committerEugene Sandulenko2016-03-25 16:30:12 +0100
commit0fb6f31d4e53b6ac194775b13e6d0f553891dccd (patch)
treeff50ee6104f1d8fe39ce2bdfd2eae1868ba567b4 /gui/EventRecorder.cpp
parentb3e5f693d4ab395f184a1649fc5e01a852f7040c (diff)
downloadscummvm-rg350-0fb6f31d4e53b6ac194775b13e6d0f553891dccd.tar.gz
scummvm-rg350-0fb6f31d4e53b6ac194775b13e6d0f553891dccd.tar.bz2
scummvm-rg350-0fb6f31d4e53b6ac194775b13e6d0f553891dccd.zip
EVENTRECORDER: Fix incorrect check which prevented records from replay
Diffstat (limited to 'gui/EventRecorder.cpp')
-rw-r--r--gui/EventRecorder.cpp3
1 files changed, 1 insertions, 2 deletions
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
-