From b6b9089422fb35b62aef41ec6437a944b9d846a9 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Fri, 16 Jun 2023 09:47:11 -0500 Subject: [PATCH] Included proper variable initialization states for Monsters. --- Crawler/Monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Crawler/Monster.cpp b/Crawler/Monster.cpp index bb07b0d5..66775dbf 100644 --- a/Crawler/Monster.cpp +++ b/Crawler/Monster.cpp @@ -282,7 +282,7 @@ void Monster::Collision(Monster&m){ Collision(); } void Monster::Collision(){ - if(strategy==RUN_TOWARDS&&state==MOVE_TOWARDS){ + if(strategy==RUN_TOWARDS&&state==MOVE_TOWARDS){ state=NORMAL; } }