Skip to content

Commit

Permalink
TOOLS: Use operator[](0) instead of std::string::front()
Browse files Browse the repository at this point in the history
This was the only remaining C++11 code in tools, and changing it
makes it possible to compile with an older compiler.
  • Loading branch information
criezy committed Dec 16, 2017
1 parent a71bab1 commit 33cd9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/prince/pack_prince.cpp
Expand Up @@ -732,7 +732,7 @@ void PackPrince::talkTxtNoDialog() {
} else if (!line.compare("#END")) {
break;
} else {
if (line.front() == '#') {
if (line[0] == '#') {
printf("UNKNOWN pragma: %s", line.c_str());
break;
} else {
Expand Down

0 comments on commit 33cd9ff

Please sign in to comment.