Bugfix: direct hits of karts by projectiles were not recognised due to

using an incorrect pointer. This could lead to karts being pushed through
the track.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2008-04-20 23:37:20 +00:00
parent c6ce384a02
commit dd253390fb

View File

@ -119,7 +119,7 @@ void Physics::update(float dt)
}
else if(p->b->is(UserPointer::UP_KART)) // projectile hit kart
{
p->a->getPointerFlyable()->explode((Kart*)(p->b));
p->a->getPointerFlyable()->explode(p->b->getPointerKart());
}
else // projectile hits projectile
{