Commit 762e8b478ed0f8ac68208c6a727e95805f1c0a1d

Authored by DarkGod
1 parent 3c191f44

warning

... ... @@ -222,7 +222,7 @@ void DORPhysic::define(b2BodyDef &bodyDef, int pid) {
222 222 DORPhysic::~DORPhysic() {
223 223 if (body) {
224 224 if (body->GetUserData()) {
225   - delete body->GetUserData();
  225 + delete (PhysicUserdata*)body->GetUserData();
226 226 body->SetUserData(nullptr);
227 227 }
228 228 PhysicSimulator::current->world.DestroyBody(body);
... ...