diff options
author | Filippos Karapetis | 2010-05-26 11:02:50 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-05-26 11:02:50 +0000 |
commit | 3187149cca9ab48a391e09c7af6430c2187cd4c6 (patch) | |
tree | 05d4c3d39b1f248bb7cc5445cb58fa2894ff05df /engines/sci/resource.cpp | |
parent | 65fa2f5af836b10554485555959adebc15bde240 (diff) | |
download | scummvm-rg350-3187149cca9ab48a391e09c7af6430c2187cd4c6.tar.gz scummvm-rg350-3187149cca9ab48a391e09c7af6430c2187cd4c6.tar.bz2 scummvm-rg350-3187149cca9ab48a391e09c7af6430c2187cd4c6.zip |
Avoid adding a null char in the sierraId Common::String
svn-id: r49234
Diffstat (limited to 'engines/sci/resource.cpp')
-rw-r--r-- | engines/sci/resource.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp index 57a4fbc751..af0f08b17a 100644 --- a/engines/sci/resource.cpp +++ b/engines/sci/resource.cpp @@ -2358,12 +2358,9 @@ Common::String ResourceManager::findSierraGameId() { seeker = heap->data + READ_UINT16(heap->data + READ_UINT16(exportPtr) + nameSelector * 2); } - char c = 0; - do { - c = *(seeker++); - sierraId += c; - } while (c); + sierraId += *(seeker++); + } while (*seeker); return sierraId; } |