From 0ea74c342c0f792ad1bcb1789b9551f2ec4b007b Mon Sep 17 00:00:00 2001 From: alef Date: Wed, 27 Dec 2023 18:52:47 +0100 Subject: [PATCH] Update src/magic_spell_effect.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/magic_spell_effect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/magic_spell_effect.cpp b/src/magic_spell_effect.cpp index ab041218c6dec..1f43349553426 100644 --- a/src/magic_spell_effect.cpp +++ b/src/magic_spell_effect.cpp @@ -1654,7 +1654,7 @@ void spell_effect::dash( const spell &sp, Creature &caster, const tripoint &targ if( caster_you != nullptr ) { if( creatures.creature_at( here.getlocal( *walk_point ) ) || !g->walk_move( here.getlocal( *walk_point ), false ) ) { - if (walk_point != trajectory.begin()) { + if( walk_point != trajectory.begin() ) { --walk_point; } break;