mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-16 16:10:58 +00:00
Convert loop to condition
This commit is contained in:
parent
56666c60d4
commit
c1512b8b6c
@ -76,7 +76,7 @@ void MWWorld::LocalScripts::startIteration()
|
||||
|
||||
bool MWWorld::LocalScripts::getNext(std::pair<std::string, Ptr>& script)
|
||||
{
|
||||
while (mIter!=mScripts.end())
|
||||
if (mIter!=mScripts.end())
|
||||
{
|
||||
std::list<std::pair<std::string, Ptr> >::iterator iter = mIter++;
|
||||
script = *iter;
|
||||
|
Loading…
Reference in New Issue
Block a user