diff --git a/locations.cpp b/locations.cpp index 39adfd74..16d3673e 100644 --- a/locations.cpp +++ b/locations.cpp @@ -178,7 +178,7 @@ template struct connection_table { */ template T* tailored_alloc(int degree) { - const T* sample = (T*) °ree; + const T* sample = nullptr; T* result; #ifndef NO_TAILORED_ALLOC int b = (char*)&sample->c.move_table[degree] + degree - (char*) sample;