Skip to content

Commit

Permalink
Changed the isRegistered flag to be set before the onAdd method gets …
Browse files Browse the repository at this point in the history
…called so that components can know when they are registered.
  • Loading branch information
hybridmindset committed Dec 18, 2011
1 parent 7af908b commit e890dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/pblabs/engine/entity/EntityComponent.as
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ package com.pblabs.engine.entity

_name = name;
_owner = owner;
_isRegistered = true;
onAdd();
_isRegistered = true;
}

/**
Expand Down

0 comments on commit e890dc5

Please sign in to comment.