parent
6049a370b3
commit
e5ec399c55
5 changed files with 19 additions and 12 deletions
|
@ -180,12 +180,12 @@ void FontRendererGui::fetchText(uint32 textId, byte *buf) {
|
|||
byte *data = _vm->fetchTextLine(_vm->_resman->openResource(textId / SIZE), textId & 0xffff);
|
||||
int i;
|
||||
|
||||
for (i = 0; data[i + 2]; i++) {
|
||||
if (buf)
|
||||
if (buf) {
|
||||
for (i = 0; data[i + 2]; i++)
|
||||
buf[i] = data[i + 2];
|
||||
buf[i] = 0;
|
||||
}
|
||||
|
||||
buf[i] = 0;
|
||||
_vm->_resman->closeResource(textId / SIZE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue