]> git.localhorst.tv Git - blank.git/blobdiff - src/block.cpp
store block type as ID rather than pointer
[blank.git] / src / block.cpp
index 02e8476c4a2af7cf9ec407fd76040acf8c057dba..e22d3e63d8ce309f71903a00a69cb985461483dc 100644 (file)
@@ -3,7 +3,6 @@
 
 namespace blank {
 
-const BlockType BlockType::DEFAULT;
 const NullShape BlockType::DEFAULT_SHAPE;
 
 void BlockType::FillVBO(
@@ -27,7 +26,7 @@ void BlockType::FillOutlineVBO(
 
 
 BlockTypeRegistry::BlockTypeRegistry() {
-       Add(BlockType::DEFAULT);
+       Add(BlockType());
 }
 
 int BlockTypeRegistry::Add(const BlockType &t) {