sw-battle-test-c

Interesting test task in C instead of C++
git clone git://bsandro.tech/sw-battle-test-c
Log | Files | Refs | README

commit e97e61025c9df83378f5977cc52483748bb42fff
parent 2be303adcb48b39be394b1c852a331196065fc03
Author: bsandro <email@bsandro.tech>
Date:   Fri, 16 Oct 2026 22:15:17 +0300

haha that was a fun mistake - unitialized stack data is always amusing

Diffstat:
Mmain.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -7,7 +7,7 @@ #include "systems/death.h" int main(int argc, char **argv) { - World w; + World w = {0}; w.turn = 1; World_Add_System(&w, &(System){ .run = actions_run }); World_Add_System(&w, &(System){ .run = death_run });