mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +00:00
GRIM: Shut up a warning.
This commit is contained in:
parent
73bd50a96f
commit
994c2ef52f
@ -251,9 +251,9 @@ void TextObject::setupText() {
|
||||
|
||||
for (int j = 0; j < _numberLines; j++) {
|
||||
int nextLinePos, cutLen;
|
||||
const char *pos = strchr(message.c_str(), '\n');
|
||||
if (pos) {
|
||||
nextLinePos = pos - message.c_str();
|
||||
const char *breakPos = strchr(message.c_str(), '\n');
|
||||
if (breakPos) {
|
||||
nextLinePos = breakPos - message.c_str();
|
||||
cutLen = nextLinePos + 1;
|
||||
} else {
|
||||
nextLinePos = message.size();
|
||||
|
Loading…
Reference in New Issue
Block a user