Forums › 💬 NodeCanvas › ⚙️ Support › GraphOwner.cs Strange behaviour
Hi
My agents fail on one of the lines in GraphOwner.cs, exactly on this line:
if (instances.ContainsKey(originalGraph)){ instance = instances[behaviour]; }
Is this correct? Why would you test for existence of originalGraph and then use different accessor? Is this a bug?
Hello Tomas,
Indeed, that is a mispell mistake. I suppose the error occurs after using SwitchBehaviour or setting the behaviour manualy? Please change the accessor to use “originalGraph” and thanks a lot for reporting this bug.
Cheers!