|
@@ -67,7 +67,7 @@ void Soldier::update() {
|
|
incomingFixture = c->GetFixtureB();
|
|
incomingFixture = c->GetFixtureB();
|
|
|
|
|
|
// Detect bullet presence
|
|
// Detect bullet presence
|
|
- Entity *incomingEntity((Entity *) incomingFixture->GetBody()->GetUserData());
|
|
|
|
|
|
+ Entity *incomingEntity((Entity *) incomingFixture->GetBody()->GetUserData().pointer);
|
|
|
|
|
|
if (incomingEntity->getFaction() == BULLET) {
|
|
if (incomingEntity->getFaction() == BULLET) {
|
|
// Damage
|
|
// Damage
|