diff options
Diffstat (limited to 'src/game-server/mapcomposite.cpp')
-rw-r--r-- | src/game-server/mapcomposite.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/mapcomposite.cpp b/src/game-server/mapcomposite.cpp index ec881cf..4a5d800 100644 --- a/src/game-server/mapcomposite.cpp +++ b/src/game-server/mapcomposite.cpp @@ -159,7 +159,7 @@ ZoneIterator::ZoneIterator(const MapRegion &r, const MapContent *m) void ZoneIterator::operator++() { - current = NULL; + current = nullptr; if (!region.empty()) { if (++pos != region.size()) @@ -348,13 +348,13 @@ void ObjectBucket::deallocate(int i) *****************************************************************************/ MapContent::MapContent(Map *map) - : last_bucket(0), zones(NULL) + : last_bucket(0), zones(nullptr) { buckets[0] = new ObjectBucket; buckets[0]->allocate(); // Skip ID 0 for (int i = 1; i < 256; ++i) { - buckets[i] = NULL; + buckets[i] = nullptr; } mapWidth = (map->getWidth() * map->getTileWidth() + zoneDiam - 1) / zoneDiam; |