diff options
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 4a8aeed59..d8cc34ca7 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -126,7 +126,9 @@ MapSector * Map::getSectorNoGenerate(v2s16 p) MapBlock * Map::getBlockNoCreateNoEx(v3s16 p3d) { v2s16 p2d(p3d.X, p3d.Z); - MapSector * sector = getSectorNoGenerate(p2d); + MapSector * sector = getSectorNoGenerateNoEx(p2d); + if(sector == NULL) + return NULL; MapBlock *block = sector->getBlockNoCreateNoEx(p3d.Y); return block; } |