Skip to content

Commit 0bc58f0

Browse files
committed
One more backported bugfix.
1 parent 78700de commit 0bc58f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chapter-73-systems/src/player.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pub fn try_move_player(delta_x: i32, delta_y: i32, ecs: &mut World) -> RunState
167167
let target = combat_stats.get(potential_target);
168168
if let Some(_target) = target {
169169
wants_to_melee.insert(entity, WantsToMelee{ target: potential_target }).expect("Add target failed");
170-
result = RunState::Ticking;
170+
return Some(RunState::Ticking);
171171
}
172172
}
173173
let door = doors.get_mut(potential_target);

0 commit comments

Comments
 (0)