fix: marked simulation::living as static since it's no longer forward declared

This commit is contained in:
Sara Gerretsen 2025-09-22 11:45:05 +02:00
parent d1eb5f5b91
commit decad20b2f

View file

@ -1,15 +1,15 @@
#include "simulation.h" #include "simulation.h"
#include "input.h" #include "input.h"
#include <cstdint>
#include <ranges>
#include <random>
#include <algorithm>
#include <clay/clay.h>
#include <SDL3/SDL_log.h> #include <SDL3/SDL_log.h>
#include <SDL3/SDL_render.h> #include <SDL3/SDL_render.h>
#include <algorithm>
#include <clay/clay.h>
#include <cstdint>
#include <set>
#include <vector>
namespace simulation { namespace simulation {
std::set<Cell> living{}; static std::set<Cell> living{};
static std::vector<Cell> overpopulated{}; static std::vector<Cell> overpopulated{};
static std::vector<Cell> underpopulated{}; static std::vector<Cell> underpopulated{};
static std::vector<Cell> born{}; static std::vector<Cell> born{};