sezero / quakespasm

QuakeSpasm -- A modern, cross-platform Quake game engine based on FitzQuake.
https://sourceforge.net/projects/quakespasm/
GNU General Public License v2.0
239 stars 96 forks source link

Fix potential crash after loading of saved game #75

Closed alexey-lysiuk closed 1 year ago

alexey-lysiuk commented 1 year ago

When number of edicts parsed from saved game is smaller than sv.num_edicts, "old" edicts are not freed nor unlinked while their memory can be reused by newly spawned entities.

This commit fixes #64.

sezero commented 1 year ago

@ericwa, @Shpoike, @andrei-drexler?

sezero commented 1 year ago

This patch is in now. Thanks!