mirror of
https://github.com/electronicarts/CnC_Remastered_Collection.git
synced 2026-07-04 09:13:13 -04:00
August 6th Patch Update
Accumulated DLL source code changes since June 22nd patch
This commit is contained in:
@@ -190,6 +190,7 @@ void LogicClass::AI(void)
|
||||
*/
|
||||
for (index = 0; index < Count(); index++) {
|
||||
ObjectClass * obj = (*this)[index];
|
||||
int count = Count();
|
||||
|
||||
obj->AI();
|
||||
|
||||
@@ -197,9 +198,9 @@ void LogicClass::AI(void)
|
||||
** If the object was destroyed in the process of performing its AI, then
|
||||
** adjust the index so that no object gets skipped.
|
||||
*/
|
||||
if (obj != (*this)[index]) {
|
||||
// if (!obj->IsActive) {
|
||||
index--;
|
||||
int count_diff = Count() - count;
|
||||
if (count_diff < 0) {
|
||||
index += count_diff;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user