diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 00b3229b2..c880d87bf 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -8637,8 +8637,11 @@ scriptwait: else { item = activator->GiveInventoryType (static_cast(type)); - item->MaxAmount = STACK(1); - item->Amount = 0; + if (item != NULL) + { + item->MaxAmount = STACK(1); + item->Amount = 0; + } } } }