Skip to content

Commit

Permalink
Cleanup|Savegame Tool: Take advantage of Qt methods
Browse files Browse the repository at this point in the history
Block is a QByteArray.
  • Loading branch information
skyjake committed Mar 28, 2014
1 parent 6147684 commit 60b75bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/tools/savegametool/src/id1translator.cpp
Expand Up @@ -219,7 +219,7 @@ bool Id1Translator::recognize(Path path)
from.seek(24);
Block vcheck;
from.readBytes(16, vcheck);
if(!String(vcheck.constData(), 8).compare("version "))
if(vcheck.startsWith("version "))
{
// The version id can be used to determine which game format the save is in.
int verId = String(vcheck.constData() + 8).toInt(0, 10, String::AllowSuffix);
Expand Down

0 comments on commit 60b75bc

Please sign in to comment.