aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2017-03-22 22:17:36 +0200
committerFilippos Karapetis2017-03-22 22:17:36 +0200
commitaf874d469e1ccead8e397fe566de06afb904131e (patch)
treefae258856e2758027cfcb1069fa883fba96e53fb /engines
parentabe1c65d626a8f3c9487f87ebbcaeef11721bf6b (diff)
downloadscummvm-rg350-af874d469e1ccead8e397fe566de06afb904131e.tar.gz
scummvm-rg350-af874d469e1ccead8e397fe566de06afb904131e.tar.bz2
scummvm-rg350-af874d469e1ccead8e397fe566de06afb904131e.zip
FULLPIPE: Code optimization
Checking for an empty string is what the original code does, according to sev, so the check for a string of size 1 was wrong
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp
index cd563258dc..fa4f955832 100644
--- a/engines/fullpipe/scene.cpp
+++ b/engines/fullpipe/scene.cpp
@@ -210,7 +210,7 @@ bool Scene::load(MfcArchive &file) {
_libHandle = g_fp->_currArchive;
- if (_picObjList.size() > 0 && _bgname.size() > 1) {
+ if (_picObjList.size() > 0 && !_bgname.empty()) {
char fname[260];
strcpy(fname, _bgname.c_str());