adding a little check

This commit is contained in:
Clément Le Bihan
2020-05-03 01:39:27 +02:00
parent 20b0669e4e
commit 70646144a3
+2 -1
View File
@@ -101,7 +101,8 @@ gc_scene *scene, gc_engine *engine)
if (!player_entity)
return;
if (GETCMP(player_entity, health_component)->dead) {
struct health_component *h_cmp = GETCMP(player_entity, health_component);
if (h_cmp->dead) {
combat_end(engine, false);
return;
}