- fixed: The terrain types array needs to be extended if a texture outside its bounds is processed - this can happen for textures with long names.

This commit is contained in:
Christoph Oelckers 2015-04-11 18:09:18 +02:00
parent 0a1d1db0ba
commit 9f2b3efd13

View file

@ -69,6 +69,12 @@ public:
}
void Set(int index, int value)
{
if ((unsigned)index >= Types.Size())
{
int oldsize = Types.Size();
Resize(index + 1);
memset(&Types[oldsize], 0xff, (index + 1 - oldsize)*sizeof(WORD));
}
Types[index] = value;
}
};