szapp / GothicFreeAim

Free aiming for the video game series Gothic
https://gfa.szapp.de
MIT License
34 stars 4 forks source link

Focus mode is wrong when loading game in fight mode #193

Closed szapp closed 5 years ago

szapp commented 5 years ago

When loading a game where the player is in a fight mode (melee, ranged or spell combat), the focus mode also captures mobs and items. This is caused by the focus mode initialization.

szapp commented 5 years ago

Fixing this bug revealed a memory leak. The focus modes were created on every initialization. Instead they should only be updated (if they were already created before).