Forum rules - please read before posting.

"Take All" from Container produces Error

edited June 2019 in Technical Q&A

Hi Chris

Unity 2019.1.4f1, AC v1.67.5

To reproduce:

  • Load up the 2d Demo
  • Add a Container, and add one or more worms to it
  • Add a Hotspot, and an ActionList with a single "Container/Open" action
  • Run the game, click the Hotspot, "Use Container", "Take All"

This will trigger a "NullReferenceException: Object reference not set to an instance of an object", full details below:

https://postimg.cc/14qcdVyz

Comments

  • Thanks for the steps. In ActionContainerSet.cs, replace line 116:

    container.items.Remove (containerItem);
    

    with:

    runtimeContainer.items.Remove (containerItem);
    
  • thanks chris, that's fixed it

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.