Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -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); | ... | ... |
-
Please register or login to post a comment