Skip to content

Commit 11fa871

Browse files
committed
Assert on actor too
1 parent 98d6987 commit 11fa871

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Managers/MovableMan.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,8 @@ bool MovableMan::AddMO(MovableObject* movableObjectToAdd) {
653653

654654
void MovableMan::AddActor(Actor* actorToAdd) {
655655
if (actorToAdd) {
656+
RTEAssert(g_ActivityMan.ActivityRunning(), "No activity running, can't add actors!");
657+
656658
actorToAdd->SetAsAddedToMovableMan();
657659
actorToAdd->CorrectAttachableAndWoundPositionsAndRotations();
658660

0 commit comments

Comments
 (0)