diff options
| author | historia <[not public]> | 2026-09-18 18:38:35 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 18:38:35 -0400 |
| commit | 1f118d79e319da4e765502e9ca5b661772de94f1 (patch) | |
| tree | bca8a3fd1e538f1c302480511e6ba872c92e10b8 /internal/world/room_migrate.go | |
| parent | 5ad42a51df4dcc5ccc3aa6a6d902085ce2ee4239 (diff) | |
| download | thehouseoficarus-1f118d79e319da4e765502e9ca5b661772de94f1.tar.gz | |
refactor: casino table core; fix: stake/migration/validation gaps
Diffstat (limited to 'internal/world/room_migrate.go')
| -rw-r--r-- | internal/world/room_migrate.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/world/room_migrate.go b/internal/world/room_migrate.go index 9bc7e0f..b7840bc 100644 --- a/internal/world/room_migrate.go +++ b/internal/world/room_migrate.go @@ -71,7 +71,12 @@ func (r *Room) RewriteRoomIDs(idMap map[int]int) bool { } // Per-room local objects: on_use/on_look steps + object desc conditions. + // WanderRooms is a room reference on every object entry (reference or + // local), so remap it outside the Local branch. for i := range r.Objects { + if remapIntSlice(idMap, r.Objects[i].WanderRooms) { + changed = true + } if r.Objects[i].Local != nil { loc := r.Objects[i].Local if remapTriggers(idMap, loc.OnUse) { |
