mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-05-10 10:06:05 +08:00
Update Scene.bf
prevent crash when adding component's type is not yet tracked.
This commit is contained in:
parent
b68ad22764
commit
5962faf056
@ -104,7 +104,6 @@ namespace Strawberry
|
|||||||
|
|
||||||
private void TrackComponent(Component c)
|
private void TrackComponent(Component c)
|
||||||
{
|
{
|
||||||
for (let t in Tracker.AssignmentLists[c.GetType()])
|
|
||||||
componentTracker[t].Add(c);
|
componentTracker[t].Add(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user