X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Freflowscan.cpp;h=9d5c965d8c4dc3661428a01d9c51db8c6dcb75e2;hb=e3bd6704a0eb65e9490347680441c7a08df36f7a;hp=49b9406d73e1521398e13e9ac0679f64e8464c7c;hpb=9714cdcf4ba51b44cca72e133ec5ef2a3c9f50f6;p=minetest.git diff --git a/src/reflowscan.cpp b/src/reflowscan.cpp index 49b9406d7..9d5c965d8 100644 --- a/src/reflowscan.cpp +++ b/src/reflowscan.cpp @@ -24,10 +24,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "util/timetaker.h" -ReflowScan::ReflowScan(Map *map, INodeDefManager *ndef) : +ReflowScan::ReflowScan(Map *map, const NodeDefManager *ndef) : m_map(map), - m_ndef(ndef), - m_liquid_queue(NULL) + m_ndef(ndef) { } @@ -41,7 +40,7 @@ void ReflowScan::scan(MapBlock *block, UniqueQueue *liquid_queue) // scanned block. Blocks are only added to the lookup if they are really // needed. The lookup is indexed manually to use the same index in a // bit-array (of uint32 type) which stores for unloaded blocks that they - // were already fetched from Map but were actually NULL. + // were already fetched from Map but were actually nullptr. memset(m_lookup, 0, sizeof(m_lookup)); int block_idx = 1 + (1 * 9) + (1 * 3); m_lookup[block_idx] = block;