Fix crash when RigidBody2D is moved while having poststeps

This commit is contained in:
Lynix
2017-03-09 18:20:18 +01:00
parent 4ea43e0b0b
commit cdf7c11ef8
4 changed files with 11 additions and 12 deletions

View File

@@ -169,7 +169,7 @@ namespace Nz
for (const auto& pair : m_rigidPostSteps)
{
for (const auto& step : pair.second.funcs)
step();
step(pair.first);
}
m_rigidPostSteps.clear();