diff options
| author | Colin Snover | 2017-05-05 22:47:42 -0500 | 
|---|---|---|
| committer | Colin Snover | 2017-05-06 10:38:58 -0500 | 
| commit | b73e275b42955d95b8728f8c636e42d3373bf8e8 (patch) | |
| tree | f2b59e79330d229c6b0bb31d6f81b1e7b09a80c2 | |
| parent | f30f34cbdee64a2cf22e1803fb8a165c0f353384 (diff) | |
| download | scummvm-rg350-b73e275b42955d95b8728f8c636e42d3373bf8e8.tar.gz scummvm-rg350-b73e275b42955d95b8728f8c636e42d3373bf8e8.tar.bz2 scummvm-rg350-b73e275b42955d95b8728f8c636e42d3373bf8e8.zip | |
SCI32: Micro-optimize speedRoom comparison
| -rw-r--r-- | engines/sci/engine/guest_additions.cpp | 2 | 
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;  		} | 
