mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-01 06:14:07 +00:00
SCI32: Micro-optimize speedRoom comparison
This commit is contained in:
parent
f30f34cbde
commit
b73e275b42
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user