aboutsummaryrefslogtreecommitdiff
path: root/common/EventRecorder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/EventRecorder.cpp')
-rw-r--r--common/EventRecorder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/EventRecorder.cpp b/common/EventRecorder.cpp
index 07a651be65..d2ad4bc475 100644
--- a/common/EventRecorder.cpp
+++ b/common/EventRecorder.cpp
@@ -28,6 +28,7 @@
#include "common/config-manager.h"
#include "common/random.h"
#include "common/savefile.h"
+#include "common/textconsole.h"
DECLARE_SINGLETON(Common::EventRecorder);
@@ -144,7 +145,6 @@ void EventRecorder::init() {
}
uint32 sign;
- uint32 version;
uint32 randomSourceCount;
if (_recordMode == kRecorderPlayback) {
_playbackCount = 0;
@@ -168,7 +168,8 @@ void EventRecorder::init() {
if (sign != RECORD_SIGNATURE) {
error("Unknown record file signature");
}
- version = _playbackFile->readUint32LE();
+
+ _playbackFile->readUint32LE(); // version
// conf vars
ConfMan.setBool("subtitles", _playbackFile->readByte() != 0);