mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
SAGA: Add safeguard warning for text access.
This commit is contained in:
parent
c341738ab8
commit
1d5a127011
@ -2299,6 +2299,9 @@ void Interface::drawPanelButtonText(InterfacePanel *panel, PanelButton *panelBut
|
||||
break;
|
||||
}
|
||||
if (_vm->getGameId() == GID_ITE) {
|
||||
if (textId > kTextEnterProtectAnswer)
|
||||
error("This should not happen. Please report to ScummVM Team how you achieved this error.");
|
||||
|
||||
text = _vm->getTextString(textId);
|
||||
textFont = kKnownFontMedium;
|
||||
textShadowKnownColor = kKnownColorVerbTextShadow;
|
||||
|
Loading…
Reference in New Issue
Block a user