abraker95 / tanks

2D arcade top-view shooting game
1 stars 0 forks source link

Crash upon bullet creation #40

Closed ghost closed 9 years ago

ghost commented 9 years ago

No special cases, it crashes everytime.

ghost commented 9 years ago

debugger points me to line 65 in entity_manager.cpp: sprite[new_bullet].sprite.setOrigin((float)size.x/2.f, (float)size.y/2.f);

ghost commented 9 years ago

Thanks, I fixed it.