forked from mirror/openmw-tes3mp
Fix unnecessary resizing in ViewData
This commit is contained in:
parent
8c151364df
commit
6bd286d924
1 changed files with 3 additions and 2 deletions
|
@ -14,9 +14,10 @@ ViewData::ViewData()
|
|||
|
||||
void ViewData::add(QuadTreeNode *node, bool visible)
|
||||
{
|
||||
int index = mNumEntries++;
|
||||
unsigned int index = mNumEntries++;
|
||||
|
||||
mEntries.resize(index+1);
|
||||
if (index+1 > mEntries.size())
|
||||
mEntries.resize(index+1);
|
||||
|
||||
Entry& entry = mEntries[index];
|
||||
if (entry.set(node, visible))
|
||||
|
|
Loading…
Reference in a new issue