From 0be07d2816a5be9918525b85853c59b91a308bd2 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 29 Apr 2026 15:45:12 +0300 Subject: [PATCH] Fix migrating object trying to newsym invalid location --- src/teleport.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/teleport.c b/src/teleport.c index 48fa7da78..3384fa204 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -2139,9 +2139,10 @@ rloco(struct obj *obj) svd.dndest.nhx, svd.dndest.nhy))); if (flooreffects(obj, tx, ty, "fall")) { - /* update old location since flooreffects() couldn't; + /* update old location (if any) since flooreffects() couldn't; unblock_point() for boulder handled by obj_extract_self() */ - newsym(otx, oty); + if (!(otx == 0 && oty == 0)) + newsym(otx, oty); return FALSE; } else if (otx == 0 && oty == 0) { ; /* fell through a trap door; no update of old loc needed */