mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-29 09:32:45 +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)
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user