Skip to content

Commit

Permalink
initialize size in custom prefabs
Browse files Browse the repository at this point in the history
  • Loading branch information
doodlezucc committed Aug 28, 2023
1 parent d9745c6 commit 6222d7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,9 @@ class CustomPrefab with EntityBase, HasInitiativeMod, HasImage {
CustomPrefab.create(Game game, this.id)
: _image = ControlledResource.empty(game),
name = '',
accessIds = [];
accessIds = [] {
size = 1;
}
CustomPrefab.fromJson(Game game, Map<String, dynamic> json)
: id = json['id'],
_image = ControlledResource.path(game, json['image']) {
Expand Down

0 comments on commit 6222d7f

Please sign in to comment.