File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -310,15 +310,12 @@ class EPF_PersistenceManager
310
310
if (!m_bAutoSaveActive )
311
311
return ;
312
312
313
- MapIterator mapEnd = m_mRootAutoSave .End ();
314
- while (m_iAutoSaveEntityIt != mapEnd )
313
+ while (m_iAutoSaveEntityIt < m_mRootAutoSave .End ())
315
314
{
316
315
EPF_PersistenceComponent persistenceComponent = m_mRootAutoSave .GetIteratorElement (m_iAutoSaveEntityIt );
317
316
if (!persistenceComponent )
318
317
{
319
318
m_mRootAutoSave .RemoveElement (m_iAutoSaveEntityIt );
320
- mapEnd = m_mRootAutoSave .End ();
321
- m_iAutoSaveEntityIt = m_mRootAutoSave .Next (m_iAutoSaveEntityIt );
322
319
continue ;
323
320
}
324
321
@@ -337,7 +334,7 @@ class EPF_PersistenceManager
337
334
}
338
335
}
339
336
340
- while (m_iAutoSaveScriptedStateIt != m_mScriptedStateAutoSave .End ())
337
+ while (m_iAutoSaveScriptedStateIt < m_mScriptedStateAutoSave .End ())
341
338
{
342
339
EPF_PersistentScriptedState scriptedState = m_mScriptedStateAutoSave .GetIteratorElement (m_iAutoSaveScriptedStateIt );
343
340
m_iAutoSaveScriptedStateIt = m_mScriptedStateAutoSave .Next (m_iAutoSaveScriptedStateIt );
You can’t perform that action at this time.
0 commit comments