You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TheSuperHackers @bugfix Mauller 26/06/2025 when sellObject is called, the member list objects in this AIGroup get removed from it. This happens within the Object::deselectObject() function.
2730
+
// This deletes the local AIGroup object from under the call to groupSell, therefore we need to make a local copy of the objects that need selling.
2728
2731
for( i = m_memberList.begin(); i != m_memberList.end(); /*empty*/ )
2729
2732
{
2733
+
groupObjectsCopy.push_back( *i++ );
2734
+
}
2730
2735
2731
-
// work off of 'thisIterator' as we may change the contents of this list
// TheSuperHackers @bugfix Mauller 26/06/2025 when sellObject is called, the member list objects in this AIGroup get removed from it. This happens within the Object::deselectObject() function.
2803
+
// This deletes the local AIGroup object from under the call to groupSell, therefore we need to make a local copy of the objects that need selling.
2801
2804
for( i = m_memberList.begin(); i != m_memberList.end(); /*empty*/ )
2802
2805
{
2806
+
groupObjectsCopy.push_back( *i++ );
2807
+
}
2803
2808
2804
-
// work off of 'thisIterator' as we may change the contents of this list
0 commit comments