About Store Forum Documentation Contact



Post Reply 
linkReferences() being called twice
Author Message
fatcoder Offline
Member

Post: #1
linkReferences() being called twice
I've noticed that when loading a game, linkReferences() is being called twice on every object. I'm just wondering if that is normal behaviour from EE or if my code might be causing it to call twice. Is EE supposed to call linkReferences() twice on each object?
04-20-2013 01:05 PM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #2
RE: linkReferences() being called twice
I just tested this in the Object References tutorial and it is calling linkReferences() twice on the character object when loading. The first call works fine, i.e. links the desired_item correctly, so the second call just seems to be redundant.
Is this a bug in EE?
04-22-2013 01:48 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: linkReferences() being called twice
Hello,

That's normal behavior, the method can be called multiple times at initialization and later during the game in case new objects got loaded.
04-25-2013 12:50 PM
Find all posts by this user Quote this message in a reply
Post Reply