Fixed segfault that happend when you'd exit the ingame-state.

This commit is contained in:
2025-12-11 18:37:40 +01:00
parent f4404457ee
commit 0045d2788c
4 changed files with 11 additions and 9 deletions

View File

@@ -91,7 +91,10 @@ static void state_render(Presentation_State *state) {
ClearBackground((Color) { 240, 236, 226, 255 });
Simulation_World *sim_world = &g_current_session->simulation_world;
assert(sim_world != NULL);
Game_World *world = sim_world->game_world;
assert(world != NULL);
Grid *grid = &world->grid;
uint32_t grid_total_size = grid->width * grid->height;