aboutsummaryrefslogtreecommitdiff
path: root/saga/sthread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'saga/sthread.cpp')
-rw-r--r--saga/sthread.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/saga/sthread.cpp b/saga/sthread.cpp
index 4dd7a7deef..4e5f912eb9 100644
--- a/saga/sthread.cpp
+++ b/saga/sthread.cpp
@@ -649,9 +649,11 @@ bool Script::runThread(ScriptThread *thread, uint instructionLimit) {
}
}
- if (sampleResourceId < 0 || sampleResourceId > 4000) {
+ if (sampleResourceId < 0 || sampleResourceId > 4000)
+ sampleResourceId = -1;
+
+ if (_vm->getGameType() == GType_ITE && !sampleResourceId)
sampleResourceId = -1;
- }
_vm->_actor->actorSpeech(actorId, strings, stringsCount, sampleResourceId, speechFlags);