fix weird gcc thing (i dont even know)

This commit is contained in:
williamistGitHub 2024-10-18 18:24:58 -04:00
parent 6c3f2ddd84
commit 734030edcb
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@
Planet* Planet::planet = nullptr;
const unsigned int Planet::chunkSize = 32;
// Public
Planet::Planet(Shader* solidShader, Shader* waterShader, Shader* billboardShader)
: solidShader(solidShader), waterShader(waterShader), billboardShader(billboardShader)

View File

@ -25,7 +25,7 @@ public:
public:
static Planet* planet;
unsigned int numChunks = 0, numChunksRendered = 0;
static const unsigned int chunkSize = 32;
static const unsigned int chunkSize;
private:
std::unordered_map<std::tuple<int, int, int>, Chunk> chunks;