Skip to content

Fix out-of-bounds vector access

Vasily Postnicov requested to merge shamazmazum/lugaru:pull-memory-issues into master

Hello. This patch fixes deletion of sprites in Source/Graphic/Sprite.cpp. It happens often that a sprite is deleted and then already deleted sprite is accessed in sprites vector. The game constantly crashes on my system (FreeBSD) without this fix.

Also it fixes out of bounds memory access in Source/Object/Person.hpp (the fix is a kludge but works fine).

Merge request reports