- fixed: UDMF user value lists need to be sorted for binary search to work but weren't.
This commit is contained in:
parent
b308a7df52
commit
823f75e592
2 changed files with 6 additions and 0 deletions
|
|
@ -309,6 +309,11 @@ void FUDMFKeys::Sort()
|
|||
|
||||
FUDMFKey *FUDMFKeys::Find(FName key)
|
||||
{
|
||||
if (!mSorted)
|
||||
{
|
||||
mSorted = true;
|
||||
Sort();
|
||||
}
|
||||
int min = 0, max = Size()-1;
|
||||
|
||||
while (min <= max)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue