aboutsummaryrefslogtreecommitdiff
path: root/internal/world
diff options
context:
space:
mode:
Diffstat (limited to 'internal/world')
-rw-r--r--internal/world/mob.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/world/mob.go b/internal/world/mob.go
index e02da53..cc2d2b2 100644
--- a/internal/world/mob.go
+++ b/internal/world/mob.go
@@ -274,6 +274,7 @@ func (s *MobStore) LoadDef(id string) (*MobDef, error) {
if err := yaml.Unmarshal(data, &def); err != nil {
return nil, fmt.Errorf("parse mob %s: %w", id, err)
}
+ def.ID = id
s.mu.Lock()
s.defs[id] = &def