Skip to content

Commit

Permalink
fixed serialization when subscribing to component change (fixes #127)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doraku committed Aug 26, 2021
1 parent ce3daf7 commit 169ea30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions documentation/NEXT_RELEASENOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fixed serialization when subscribing to component change (#127)
2 changes: 1 addition & 1 deletion source/DefaultEcs/Technical/ComponentPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ public ComponentPool(short worldId, int worldMaxCapacity, int maxCapacity, bool
_sortedIndex = 0;

Publisher<TrimExcessMessage>.Subscribe(_worldId, On);
Publisher<ComponentTypeReadMessage>.Subscribe(_worldId, On);
Publisher<EntityDisposedMessage>.Subscribe(_worldId, On);
if (!isPrevious)
{
Publisher<ComponentTypeReadMessage>.Subscribe(_worldId, On);
Publisher<ComponentReadMessage>.Subscribe(_worldId, On);
}

Expand Down

0 comments on commit 169ea30

Please sign in to comment.