- Fixed: translationtables cannot use a TAutoGrowArray because it doesn't

initialize newly added fields when growing.


SVN r675 (trunk)
This commit is contained in:
Christoph Oelckers 2008-01-07 22:07:25 +00:00
commit ed242b32df
5 changed files with 13 additions and 7 deletions

View file

@ -4675,11 +4675,13 @@ int DLevelScript::RunScript ()
sp--;
if (i >= 1 && i <= MAX_ACS_TRANSLATIONS)
{
translation = translationtables[TRANSLATION_LevelScripted].GetVal(i - 1);
TArray<FRemapTable*> &tt = translationtables[TRANSLATION_LevelScripted];
while (tt.Size() < i) tt.Push(NULL);
translation = tt[i-1];
if (translation == NULL)
{
translation = new FRemapTable;
translationtables[TRANSLATION_LevelScripted].SetVal(i - 1, translation);
tt[i-1] = translation;
}
translation->MakeIdentity();
}