mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 20:39:41 +00:00
Fix unnecessary resizing in ViewData
This commit is contained in:
parent
8c151364df
commit
6bd286d924
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ ViewData::ViewData()
|
|||
|
||||
void ViewData::add(QuadTreeNode *node, bool visible)
|
||||
{
|
||||
int index = mNumEntries++;
|
||||
unsigned int index = mNumEntries++;
|
||||
|
||||
if (index+1 > mEntries.size())
|
||||
mEntries.resize(index+1);
|
||||
|
||||
Entry& entry = mEntries[index];
|
||||
|
|
Loading…
Reference in a new issue