[Fix] Segfault on shooting stuff.

This commit is contained in:
Allanis 2018-01-21 16:08:48 +00:00
parent 2243d82e64
commit b5175d562e

View File

@ -213,8 +213,6 @@ static bool _OnCollision(dGeomID g1, dGeomID g2, Object* o1, Object* o2,
}
Ship::LaserObj* lobj = static_cast<Ship::LaserObj*>(o2);
if(o1 == lobj->owner) return false;
printf("%s (geom flag %x) was shot by %s\n", ((ModelBody::Geom*)o1)->parent->GetLabel().c_str(),
((ModelBody::Geom*)o1)->flags, lobj->owner->GetLabel().c_str());
if(o1->GetType() == Object::SHIP) {
DynamicBody* rb = (DynamicBody*)o1;