aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/kernel.cpp')
-rw-r--r--engines/sci/engine/kernel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/engine/kernel.cpp b/engines/sci/engine/kernel.cpp
index 83a2ee4dec..4133f4cb3b 100644
--- a/engines/sci/engine/kernel.cpp
+++ b/engines/sci/engine/kernel.cpp
@@ -388,7 +388,8 @@ void Kernel::detectSciFeatures() {
if (!r) { // No such resource?
staticSelectorTable = checkStaticSelectorNames();
- error("Kernel: Could not retrieve selector names");
+ if (staticSelectorTable.empty())
+ error("Kernel: Could not retrieve selector names");
}
int count = staticSelectorTable.empty() ? READ_LE_UINT16(r->data) + 1 : staticSelectorTable.size(); // Counter is slightly off