Game Version number: Experimental 1.2.1.66
Modded?: No
Issue Description:
There is a NULL pointer in: "SCR_ConsumableItemComponent"
void ApplyItemEffect(IEntity target, IEntity user, ItemUseParameters animParams, IEntity item, bool deleteItem = true) { if (!m_ConsumableEffect) return; m_ConsumableEffect.ApplyEffect(target, user, item, animParams); **user = NULL if AI is using it** ModeClear(EGadgetMode.IN_HAND); if (deleteItem) RplComponent.DeleteRplEntity(GetOwner(), false); }
SCRIPT (E): Virtual Machine Exception Reason: NULL pointer to instance. Variable 'user' Class: 'SCR_ConsumableItemComponent' Function: 'ApplyItemEffect' Stack trace: Scripts/Game/Components/Gadgets/SCR_ConsumableItemComponent.c:36 Function ApplyItemEffect Scripts/Game/Components/Gadgets/SCR_ConsumableItemComponent.c:87 Function OnApplyToCharacter Scripts/Game/Character/SCR_CharacterControllerComponent.c:189 Function OnItemUseEnded WORLD : UpdateEntities