diff --git a/src/openrct2/paint/Paint.cpp b/src/openrct2/paint/Paint.cpp index 0fb4b9745a..ab2b7269f4 100644 --- a/src/openrct2/paint/Paint.cpp +++ b/src/openrct2/paint/Paint.cpp @@ -391,7 +391,10 @@ template static void PaintStructsSortQuadrant(PaintStruct* pa auto* ps = child; child = child->NextQuadrantEntry; - PREFETCH(&child->Bounds); + if (child != nullptr) + { + PREFETCH(&child->Bounds); + } if (child == nullptr || child->SortFlags & PaintSortFlags::OutsideQuadrant) { break;