diff --git a/documentation/NEXT_RELEASENOTES.txt b/documentation/NEXT_RELEASENOTES.txt index e69de29b..6bae8bc2 100644 --- a/documentation/NEXT_RELEASENOTES.txt +++ b/documentation/NEXT_RELEASENOTES.txt @@ -0,0 +1 @@ +fixed serialization when subscribing to component change (#127) \ No newline at end of file diff --git a/source/DefaultEcs/Technical/ComponentPool.cs b/source/DefaultEcs/Technical/ComponentPool.cs index cc463bed..2dc111a1 100644 --- a/source/DefaultEcs/Technical/ComponentPool.cs +++ b/source/DefaultEcs/Technical/ComponentPool.cs @@ -113,10 +113,10 @@ public ComponentPool(short worldId, int worldMaxCapacity, int maxCapacity, bool _sortedIndex = 0; Publisher.Subscribe(_worldId, On); - Publisher.Subscribe(_worldId, On); Publisher.Subscribe(_worldId, On); if (!isPrevious) { + Publisher.Subscribe(_worldId, On); Publisher.Subscribe(_worldId, On); }