DarkflameUniverse / DarkflameServer

The main repository for the Darkflame Universe Server Emulator project.
https://www.darkflameuniverse.org/
GNU Affero General Public License v3.0
639 stars 172 forks source link

fix: use after free in mission progression after removing item from inventory #1567

Closed EmosewaMC closed 3 months ago

EmosewaMC commented 3 months ago

SetCount is cursed... other methods of freeing the memory should be explored

no longer has ub when deleting an item from the inventory and makes it so if you delete items that are apart of gather tasks, the progress is now properly undone