mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-14 16:07:39 +00:00
Merge pull request #241 from klusark/fixtext
Destroy the old textobject graphics data when text is changed. Fixes #240
This commit is contained in:
commit
119c340a32
@ -55,6 +55,7 @@ TextObject::~TextObject() {
|
||||
}
|
||||
|
||||
void TextObject::setText(const char *text) {
|
||||
destroy();
|
||||
if (strlen(text) < sizeof(_textID))
|
||||
strcpy(_textID, text);
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user