mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Fix not correctly setting type data for text scroll items
This commit is contained in:
parent
21f68c117e
commit
d900b9cccd
@ -1010,6 +1010,11 @@ namespace IW4
|
||||
|
||||
case CommonItemFeatureType::NONE:
|
||||
default:
|
||||
if(item->type == ITEM_TYPE_TEXT_SCROLL)
|
||||
{
|
||||
item->typeData.scroll = static_cast<textScrollDef_s*>(m_memory->Alloc(sizeof(textScrollDef_s)));
|
||||
memset(item->typeData.scroll, 0, sizeof(textScrollDef_s));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user