From b73e275b42955d95b8728f8c636e42d3373bf8e8 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 5 May 2017 22:47:42 -0500 Subject: SCI32: Micro-optimize speedRoom comparison --- engines/sci/engine/guest_additions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci') 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; } -- cgit v1.2.3