- 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

@ -44,7 +44,7 @@
#include "gi.h"
#include "stats.h"
TAutoGrowArray<FRemapTable *> translationtables[NUM_TRANSLATION_TABLES];
TArray<FRemapTable *> translationtables[NUM_TRANSLATION_TABLES];
/****************************************************/
/****************************************************/
@ -281,7 +281,7 @@ FRemapTable *TranslationToTable(int translation)
{
unsigned int type = GetTranslationType(translation);
unsigned int index = GetTranslationIndex(translation);
TAutoGrowArray<FRemapTable *> *slots;
TArray<FRemapTable *> *slots;
if (type <= 0 || type >= NUM_TRANSLATION_TABLES)
{