1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:23:53 +00:00

Convert loop to condition

This commit is contained in:
Andrei Kortunov 2021-01-09 14:18:38 +04:00
parent 56666c60d4
commit c1512b8b6c

View file

@ -76,7 +76,7 @@ void MWWorld::LocalScripts::startIteration()
bool MWWorld::LocalScripts::getNext(std::pair<std::string, Ptr>& script) 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++; std::list<std::pair<std::string, Ptr> >::iterator iter = mIter++;
script = *iter; script = *iter;