Original Post
Hello, I have a problem in my game..
This problem was happening since a lot of time, it was just sometimes ( maybe 40% of the time ) when closing my game, I had an assertion error:
quote:But now, I just implemented a function to detect the collision of the FireBalls and the monsters... and sometimes ( maybe 1/3 times ) when I hit a monster with a fireball, I have this assert error, and even if I "Ignore" it, the program close... I use the same algorithm to detect the collision on other things and it works fine, so the problem may come from the STD vector I use with my monsters ? And the problem would happen when erasing the monster ? (I also use a STD vector with my fireballs, but there is no problems in the other fireball collision detections(ex, when the fireball hit a wall, there is no problems) ) So I don''t know what to do with this error :\ Thx
Debug Assertion Failed! Program: ...ctXprogrammation\FireMage\FireMage___Win32_Debug\FireMage.exe File: dbgheap.c Line: 1017 Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)