소스 검색

Merge pull request #590 from Ragora/bugfix-projectile-on-add

* BugFix: Correct the onAdd callback not being raised for Projectiles
Jeff Hutchinson 4 년 전
부모
커밋
e7f002228c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Engine/source/T3D/projectile.cpp

+ 2 - 0
Engine/source/T3D/projectile.cpp

@@ -786,6 +786,8 @@ bool Projectile::onAdd()
       // If we're on the server, we need to inherit some of our parent's velocity
       //
       mCurrTick = 0;
+
+      scriptOnAdd();
    }
    else
    {