PETKA: fixed crash

This commit is contained in:
Andrei Prykhodko 2020-05-27 17:01:03 +03:00
parent befe598e62
commit d5ccd4619d

View File

@ -53,7 +53,9 @@ QText::QText(const Common::U32String &text, uint16 textColor, uint16 outlineColo
void QText::draw() {
const Graphics::Surface *s = g_vm->resMgr()->loadBitmap(-2);
g_vm->videoSystem()->transBlitFrom(*s, Common::Point((640 - s->w) / 2, 479 - s->h));
if (s) {
g_vm->videoSystem()->transBlitFrom(*s, Common::Point((640 - s->w) / 2, 479 - s->h));
}
}
const Common::Rect &QText::getRect() {