|
@@ -73,7 +73,7 @@ void TinyWorld::collectVisuals(std::vector<Visual *> &scope, b2Vec2 center, b2Ve
|
|
|
|
|
|
Entity *currentEntity;
|
|
Entity *currentEntity;
|
|
for (auto it(callback.getTab().begin()); it != callback.getTab().end(); it++) {
|
|
for (auto it(callback.getTab().begin()); it != callback.getTab().end(); it++) {
|
|
- currentEntity = (Entity *) (*it)->GetUserData();
|
|
+ currentEntity = (Entity *) (*it)->GetUserData().pointer;
|
|
scope.push_back(currentEntity->makeVisual());
|
|
scope.push_back(currentEntity->makeVisual());
|
|
}
|
|
}
|
|
}
|
|
}
|