Convert loop to condition

pull/3040/head
Andrei Kortunov 4 years ago
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…
Cancel
Save