From 0708c0e2bcc3b79562858a096d7e15fa4e55b251 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 7 Apr 2024 23:48:49 +0200 Subject: [PATCH] fixed a possible crash when using Orb of Space on Orb of Safety --- orbs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orbs.cpp b/orbs.cpp index 9989ea6d..20daca44 100644 --- a/orbs.cpp +++ b/orbs.cpp @@ -826,10 +826,11 @@ void telekinesis(cell *dest) { moveItem(dest, cwt.at, true); eItem it = cwt.at->item; + bool saf = it == itOrbSafety; collectItem(cwt.at, cwt.at, true); if(cwt.at->item == it) animateMovement(match(dest, cwt.at), LAYER_BOAT); - else + else if(!saf) animate_item_throw(dest, cwt.at, it); useupOrb(itOrbSpace, cost.first);