Fix a...strange debug issue.
Didn't get this to happen on release testing.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user