Guard setting the building flag

avinationmerge
Melanie 2012-05-30 19:32:02 +02:00
parent 0587079115
commit c548f48791
1 changed files with 4 additions and 0 deletions

View File

@ -3320,6 +3320,10 @@ namespace OpenSim.Region.Physics.OdePlugin
protected void changeBuilding(bool newbuilding)
{
// Check if we need to do anything
if (newbuilding == m_building)
return;
if ((bool)newbuilding)
{
m_building = true;