Skip to content

Commit c96d967

Browse files
committed
Update C63 book to match code.
1 parent 7309186 commit c96d967

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

book/src/chapter_63.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ pub fn death(ecs: &mut World, effect: &EffectSpawner, target : Entity) {
536536
let mut map = ecs.fetch_mut::<Map>();
537537

538538
if let Some(pos) = entity_position(ecs, target) {
539-
map.blocked[pos as usize] = false;
539+
crate::spatial::remove_entity(target, pos as usize);
540540
}
541541

542542
if let Some(source) = effect.creator {

0 commit comments

Comments
 (0)