From af874d469e1ccead8e397fe566de06afb904131e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 22 Mar 2017 22:17:36 +0200 Subject: 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 --- engines/fullpipe/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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()); -- cgit v1.2.3