fixed a possible crash when using Orb of Space on Orb of Safety

This commit is contained in:
Zeno Rogue 2024-04-07 23:48:49 +02:00
parent b7db56812e
commit 0708c0e2bc
1 changed files with 2 additions and 1 deletions

View File

@ -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);