fixed spurious messages about slashing the Shadow

This commit is contained in:
Zeno Rogue 2021-06-06 11:25:43 +02:00
parent c9229f36d6
commit d7445d4fdf
1 changed files with 1 additions and 1 deletions

View File

@ -1470,7 +1470,7 @@ EX void moveshadow() {
cshpos = (cshpos+1) % SHSIZE;
for(int p: player_indices()) {
cell* where = shpos[cshpos][p];
if(sword::at(where)) {
if(where && sword::at(where)) {
kill_shadow_at(where);
fightmessage(moShadow, moPlayer, false, AF_SWORD_INTO);
continue;