mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-24 23:10:09 +00:00
fixed a possible crash when using Orb of Space on Orb of Safety
This commit is contained in:
parent
b7db56812e
commit
0708c0e2bc
3
orbs.cpp
3
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user