Skip to content

Commit

Permalink
SCI32: Micro-optimize speedRoom comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed May 6, 2017
1 parent f30f34c commit b73e275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/sci/engine/guest_additions.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit b73e275

Please sign in to comment.