mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 05:40:44 +00:00
- 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:
parent
0a1d1db0ba
commit
9f2b3efd13
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue