forked from teamnwah/openmw-tes3coop
Get the object reference's position once when updating its sounds
This commit is contained in:
parent
5cb90ab704
commit
71d3f9bd51
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue