aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/resource.cpp
diff options
context:
space:
mode:
authorMax Horn2006-07-23 15:08:48 +0000
committerMax Horn2006-07-23 15:08:48 +0000
commit4fcdbb93497d30de4c0fc606b3bbddeabdbb4746 (patch)
tree9c6b98d81c004a191e0c00fa8651e02eab98e593 /engines/kyra/resource.cpp
parent602548cea32612c791ba1951e21f0bdc87ae616d (diff)
downloadscummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.tar.gz
scummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.tar.bz2
scummvm-rg350-4fcdbb93497d30de4c0fc606b3bbddeabdbb4746.zip
String class usage cleanup
svn-id: r23582
Diffstat (limited to 'engines/kyra/resource.cpp')
-rw-r--r--engines/kyra/resource.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp
index 12f671c770..e9b9e91508 100644
--- a/engines/kyra/resource.cpp
+++ b/engines/kyra/resource.cpp
@@ -373,12 +373,12 @@ uint32 PAKFile::getFileSize(const char* file) {
bool PAKFile::openFile(Common::File &filehandle) {
filehandle.close();
- if (!filehandle.open(_physfile == "" ? _filename : _physfile)) {
+ if (!filehandle.open(_physfile.empty() ? _filename : _physfile)) {
debug(3, "couldn't open pakfile '%s'\n", _filename.c_str());
return false;
}
- if (_physfile != "") {
+ if (!_physfile.empty()) {
filehandle.seek(_physOffset, SEEK_CUR);
}