aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/loader_v3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/loader_v3.cpp')
-rw-r--r--engines/agi/loader_v3.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agi/loader_v3.cpp b/engines/agi/loader_v3.cpp
index dcf7d83809..8c8c8da7fa 100644
--- a/engines/agi/loader_v3.cpp
+++ b/engines/agi/loader_v3.cpp
@@ -27,6 +27,7 @@
#include "agi/lzw.h"
#include "common/config-manager.h"
+#include "common/events.h"
#include "common/fs.h"
namespace Agi {
@@ -231,7 +232,7 @@ uint8 *AgiLoader_v3::loadVolRes(AgiDir *agid) {
debugC(3, kDebugLevelResources, "x = %x %x", x[0], x[1]);
error("ACK! BAD RESOURCE");
- g_system->quit();
+ g_system->getEventManager()->pushEvent(Common::EVENT_QUIT);
}
agid->len = READ_LE_UINT16((uint8 *) x + 3); /* uncompressed size */