mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Get the object reference's position once when updating its sounds
This commit is contained in:
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…
x
Reference in New Issue
Block a user