Skip to content

Commit

Permalink
Fixes ExposeData issue in MetaDataComponent. (space-wizards#799)
Browse files Browse the repository at this point in the history
  • Loading branch information
Acruid authored Apr 28, 2019
1 parent 0d00a6a commit d74151d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Robust.Shared/GameObjects/Components/MetaDataComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ public override void ExposeData(ObjectSerializer serializer)

serializer.DataField(ref _entityName, "name", string.Empty);
serializer.DataField(ref _entityDescription, "desc", string.Empty);
serializer.DataField(ref _entityPrototype, "proto", null);
serializer.DataField(ref _entityPrototype, "proto", null,
s => _prototypes.Index<EntityPrototype>(s),
p => p.ID);
}
}
}

0 comments on commit d74151d

Please sign in to comment.