Fix a...strange debug issue.

Didn't get this to happen on release testing.
This commit is contained in:
Jason Felds
2013-05-04 18:09:40 -04:00
parent 25c3c7d4f1
commit a040cb0c62
+3
View File
@@ -565,6 +565,8 @@ void UnlockManager::Load()
// Make sure that we don't have duplicate unlock IDs. This can cause problems // Make sure that we don't have duplicate unlock IDs. This can cause problems
// with UnlockCelebrate and with codes. // with UnlockCelebrate and with codes.
unsigned size = m_UnlockEntries.size(); unsigned size = m_UnlockEntries.size();
if (size > 1)
{
for (unsigned i = 0; i < size - 1; ++i) for (unsigned i = 0; i < size - 1; ++i)
{ {
UnlockEntry const &ue1 = m_UnlockEntries[i]; UnlockEntry const &ue1 = m_UnlockEntries[i];
@@ -576,6 +578,7 @@ void UnlockManager::Load()
} }
} }
}
for (UnlockEntry &e : m_UnlockEntries) for (UnlockEntry &e : m_UnlockEntries)
{ {