Fixed object creation after loading save file
Looks like @piotrdz broke it when creating the ObjectCreateParams struct. I'm kinda suprised this remained unnoticed for so long ;) Reported in issue #570master
parent
9d6543a947
commit
27bbc27948
|
@ -126,6 +126,13 @@ CObject* CObjectManager::CreateObject(ObjectCreateParams params)
|
|||
params.id = m_nextId;
|
||||
m_nextId++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (params.id >= m_nextId)
|
||||
{
|
||||
m_nextId = params.id + 1;
|
||||
}
|
||||
}
|
||||
|
||||
assert(m_objects.find(params.id) == m_objects.end());
|
||||
|
||||
|
|
|
@ -3659,7 +3659,6 @@ void CPhysics::WheelParticle(TraceColor color, float width)
|
|||
{
|
||||
Math::Matrix* mat;
|
||||
Math::Vector goal1, goal2, wheel1, wheel2;
|
||||
Gfx::ParticleType parti;
|
||||
float dist1, dist2, step;
|
||||
|
||||
mat = m_object->GetWorldMatrix(0);
|
||||
|
|
Loading…
Reference in New Issue