mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-19 04:10:54 +00:00
Merge pull request #1689 from ZombieSoul/fix-physics-player-collision
Fix wrong variable in physics collision loop
This commit is contained in:
commit
58632d0d73
1 changed files with 1 additions and 1 deletions
|
|
@ -5169,7 +5169,7 @@ bool Player::updatePos(const F32 travelTime)
|
|||
Collision& colCheck = collisionList[i];
|
||||
if (colCheck.object)
|
||||
{
|
||||
SceneObject* obj = static_cast<SceneObject*>(col.object);
|
||||
SceneObject* obj = static_cast<SceneObject*>(colCheck.object);
|
||||
if (obj->getTypeMask() & PlayerObjectType)
|
||||
{
|
||||
_handleCollision( colCheck );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue