Items/Icon

* set a default icon for items so they don't break listviews
This commit is contained in:
Sarjuuk
2024-04-03 01:27:53 +02:00
parent e01c3ac205
commit e5e4446366
6 changed files with 11 additions and 7 deletions

View File

@@ -171,8 +171,8 @@ class SpellList extends BaseType
unset($_curTpl['skillLine1']);
unset($_curTpl['skillLine2OrMask']);
if (!$_curTpl['iconString'])
$_curTpl['iconString'] = 'inv_misc_questionmark';
// fix missing icons
$_curTpl['iconString'] = $_curTpl['iconString'] ?: DEFAULT_ICON;
$this->scaling[$this->id] = false;
}