aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorColin Snover2017-05-05 22:47:42 -0500
committerColin Snover2017-05-06 10:38:58 -0500
commitb73e275b42955d95b8728f8c636e42d3373bf8e8 (patch)
treef2b59e79330d229c6b0bb31d6f81b1e7b09a80c2 /engines/sci
parentf30f34cbdee64a2cf22e1803fb8a165c0f353384 (diff)
downloadscummvm-rg350-b73e275b42955d95b8728f8c636e42d3373bf8e8.tar.gz
scummvm-rg350-b73e275b42955d95b8728f8c636e42d3373bf8e8.tar.bz2
scummvm-rg350-b73e275b42955d95b8728f8c636e42d3373bf8e8.zip
SCI32: Micro-optimize speedRoom comparison
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/guest_additions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/guest_additions.cpp b/engines/sci/engine/guest_additions.cpp
index f52bffd16a..e2b7354bdf 100644
--- a/engines/sci/engine/guest_additions.cpp
+++ b/engines/sci/engine/guest_additions.cpp
@@ -525,7 +525,7 @@ bool GuestAdditions::restoreFromLauncher() const {
// exist. In other games, restoring early either breaks benchmarking,
// or, when trying to load an invalid save game, makes the dialog
// telling the user that the game is invalid impossible to read
- if (Common::String(_segMan->getObjectName(_state->variables[VAR_GLOBAL][kGlobalVarCurrentRoom])) == "speedRoom") {
+ if (strcmp(_segMan->getObjectName(_state->variables[VAR_GLOBAL][kGlobalVarCurrentRoom]), "speedRoom") == 0) {
return false;
}