1
0
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:
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)
{
while (mIter!=mScripts.end())
if (mIter!=mScripts.end())
{
std::list<std::pair<std::string, Ptr> >::iterator iter = mIter++;
script = *iter;