Explorar o código

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

* BugFix: Correct the onAdd callback not being raised for Projectiles
Jeff Hutchinson %!s(int64=4) %!d(string=hai) anos
pai
achega
e7f002228c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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
    {