Get the object reference's position once when updating its sounds

actorid
Chris Robinson 13 years ago
parent 5cb90ab704
commit 71d3f9bd51

@ -308,10 +308,10 @@ namespace MWSound
if(snditer == mActiveSounds.end())
return;
const ESM::Position &pos = ptr.getCellRef().pos;
IDMap::iterator iditer = snditer->second.begin();
while(iditer != snditer->second.end())
{
const ESM::Position &pos = ptr.getCellRef().pos;
iditer->second->update(pos.pos);
iditer++;
}

Loading…
Cancel
Save