mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 00:02:55 +00:00
Add missing nullptr check for newsticker iw4 menu dumping
This commit is contained in:
parent
805c00539b
commit
a2af7db92b
@ -632,7 +632,7 @@ void MenuDumper::WriteEnumDvarProperties(const itemDef_s* item) const
|
|||||||
|
|
||||||
void MenuDumper::WriteTickerProperties(const itemDef_s* item) const
|
void MenuDumper::WriteTickerProperties(const itemDef_s* item) const
|
||||||
{
|
{
|
||||||
if (item->type != ITEM_TYPE_NEWS_TICKER)
|
if (item->type != ITEM_TYPE_NEWS_TICKER || item->typeData.ticker == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const auto* newsTickerDef = item->typeData.ticker;
|
const auto* newsTickerDef = item->typeData.ticker;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user