- Fixed: Crash when trying to swap fragglescript special when specials 272 and 270 aren't in the translation array.

SVN r3830 (trunk)
This commit is contained in:
Braden Obrzut 2012-08-22 04:16:58 +00:00
parent 100391507e
commit 2564125148
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ void T_LoadScripts(MapData *map)
// the default translator is being used.
// Custom translators will not be patched.
if ((gameinfo.gametype == GAME_Doom || gameinfo.gametype == GAME_Heretic) && level.info->Translator.IsEmpty() &&
level.maptype == MAPTYPE_DOOM && SimpleLineTranslations[272 - 2*HasScripts].special == FS_Execute)
level.maptype == MAPTYPE_DOOM && SimpleLineTranslations.Size() > 272 && SimpleLineTranslations[272 - 2*HasScripts].special == FS_Execute)
{
FLineTrans t = SimpleLineTranslations[270];
SimpleLineTranslations[270] = SimpleLineTranslations[272];