diff options
Diffstat (limited to 'src/core/bullet.hpp')
-rw-r--r-- | src/core/bullet.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/bullet.hpp b/src/core/bullet.hpp index d8f275e..afba038 100644 --- a/src/core/bullet.hpp +++ b/src/core/bullet.hpp @@ -56,6 +56,11 @@ public: if(!bullets[i]->exist)break; if(i==alloced) bullets[alloced++]=new T; + else + { + delete bullets[i]; + bullets[i]=new T; + } return i; } return -1; |