module: plimp , file: pl.cpp function: FindNearbyEntities
code:
csRef<iObjectIterator> objit (engine->GetNearbyObjects (sector, pos, radius)); while (objit->Next ()) { ....... ....... }
must be:
csRef<iObjectIterator> objit (engine->GetNearbyObjects (sector, pos, radius)); objit->Reset(); do { ....... ....... } while (objit->Next ());
Log in to post a comment.
module: plimp , file: pl.cpp
function: FindNearbyEntities
code:
csRef<iObjectIterator> objit (engine->GetNearbyObjects (sector, pos, radius));
while (objit->Next ())
{
.......
.......
}
must be:
csRef<iObjectIterator> objit (engine->GetNearbyObjects (sector, pos, radius));
objit->Reset();
do
{
.......
.......
} while (objit->Next ());