SAGA: Add safeguard warning for text access.

This commit is contained in:
Eugene Sandulenko 2016-05-16 11:40:36 +02:00
parent c341738ab8
commit 1d5a127011

View File

@ -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;