aboutsummaryrefslogtreecommitdiff
path: root/kyra/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kyra/script.cpp')
-rw-r--r--kyra/script.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/kyra/script.cpp b/kyra/script.cpp
index 5a52aca711..358d65b1bb 100644
--- a/kyra/script.cpp
+++ b/kyra/script.cpp
@@ -20,13 +20,12 @@
*/
#include "common/stdafx.h"
+#include "common/stream.h"
+#include "common/util.h"
#include "kyra/kyra.h"
#include "kyra/script.h"
#include "kyra/resource.h"
-#include "common/stream.h"
-#include "common/util.h"
-
#define COMMAND(x) { &VMContext::x, #x }
#define OPCODE(x) { &VMContext::x, #x }
@@ -402,7 +401,7 @@ void VMContext::loadScript(const char* file) {
memset(_stack, 0, sizeof(int32) * ARRAYSIZE(_stack));
// loads the new file
- _scriptFile = _engine->resManager()->fileData(file, &_scriptFileSize);
+ _scriptFile = _engine->resource()->fileData(file, &_scriptFileSize);
if (!_scriptFileSize || !_scriptFile) {
error("couldn't load script file '%s'", file);