Fix crash attempting to remove sprite zoom level from empty entry
This commit is contained in:
@@ -125,6 +125,9 @@ public:
|
||||
void RemoveByMissingZoomLevels(uint8 lvls)
|
||||
{
|
||||
Sprite *base = this->GetSpritePtr();
|
||||
if (base == nullptr) {
|
||||
return;
|
||||
}
|
||||
if (base->missing_zoom_levels == lvls) {
|
||||
/* erase top level entry */
|
||||
this->ptr.reset(base->next);
|
||||
|
Reference in New Issue
Block a user