luciusDXL / TheForceEngine

Modern "Jedi Engine" replacement supporting Dark Forces, mods, and in the future Outlaws.
https://TheForceEngine.github.io
GNU General Public License v2.0
946 stars 71 forks source link

TFE_Asset: fix copy-paste bug in hd sprite asset cleanup #407

Closed mlauss2 closed 3 days ago

mlauss2 commented 2 months ago

This fixes a copy-paste bug which leads to a crash on shutdown when no HD assets are available.

Thread 1 "theforceengine" received signal SIGSEGV, Segmentation fault.
TFE_Sprite_Jedi::freePool (pool=pool@entry=POOL_GAME) at TheForceEngine/TFE_Asset/spriteAsset_Jedi.cpp: 717
717                             for (s32 e = 0; e < hdWaxList[i]->entryCount; e++)
luciusDXL commented 3 days ago

I fixed this in another diff, so closing.