Open martin-t opened 2 years ago
I did a little investigation, and I think this might be caused by the decals system. Will try to fix it and possibly do pull request.
Ok, since im beginner to rust and I dont know the inner processes of Iapeteus or Engine so i wont be able to fix it, but i think the problem is caused at line 1208 in /src/level/mod.rs, where is being handled parent to add bullet decal to. I think cause of that there is being decal created for grenade and after cleaning up from projectile.rs there remains decal reference for it, which causes error.
Dont know if there should be a mechanism to clear decals in clean_up methods before the node is being destroyed.
I throw a grenade, shoot it with the default gun and after a short while (when it's supposed to explode?) the game crashes.