File tree 2 files changed +6
-5
lines changed
Generals/Code/GameEngine/Source/GameLogic/Object/Contain
GeneralsMD/Code/GameEngine/Source/GameLogic/Object/Contain
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -324,15 +324,15 @@ void OpenContain::addToContain( Object *rider )
324
324
addOrRemoveObjFromWorld (rider, false );
325
325
}
326
326
327
- // ensure our contents are positions correctly.
328
- redeployOccupants ();
329
-
330
327
// trigger an onContaining event for the object that just "ate" something
331
328
if ( getObject ()->getContain () )
332
329
{
333
330
getObject ()->getContain ()->onContaining ( rider );
334
331
}
335
332
333
+ // ensure our contents are positions correctly.
334
+ redeployOccupants ();
335
+
336
336
// trigger an onContainedBy event for the object that just got "eaten" by us
337
337
rider->onContainedBy ( getObject () );
338
338
Original file line number Diff line number Diff line change @@ -346,15 +346,16 @@ void OpenContain::addToContain( Object *rider )
346
346
addOrRemoveObjFromWorld (rider, false );
347
347
}
348
348
349
- // ensure our contents are positions correctly.
350
- redeployOccupants ();
351
349
352
350
// trigger an onContaining event for the object that just "ate" something
353
351
if ( getObject ()->getContain () )
354
352
{
355
353
getObject ()->getContain ()->onContaining ( rider, wasSelected );
356
354
}
357
355
356
+ // ensure our contents are positions correctly.
357
+ redeployOccupants ();
358
+
358
359
// trigger an onContainedBy event for the object that just got "eaten" by us
359
360
rider->onContainedBy ( getObject () );
360
361
You can’t perform that action at this time.
0 commit comments