Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ void W3DTreeBuffer::updateVertexBuffer()
Real theSin = m_trees[curTree].sin;
Real theCos = m_trees[curTree].cos;
if (type<0 || m_treeTypes[type].m_mesh == nullptr) {
type = 0;
continue; // No valid mesh for this tree type, skip to avoid null pointer dereference.
}

Int startVertex = m_trees[curTree].firstIndex;
Expand Down Expand Up @@ -2038,3 +2038,7 @@ void W3DTreeBuffer::loadPostProcess()







Loading