We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8b4870c + 3b76141 commit 4d17055Copy full SHA for 4d17055
1 file changed
Core/GameEngineDevice/Source/W3DDevice/GameClient/W3DTreeBuffer.cpp
@@ -1014,7 +1014,7 @@ void W3DTreeBuffer::updateVertexBuffer()
1014
Real theSin = m_trees[curTree].sin;
1015
Real theCos = m_trees[curTree].cos;
1016
if (type<0 || m_treeTypes[type].m_mesh == nullptr) {
1017
- type = 0;
+ continue; // No valid mesh for this tree type, skip to avoid null pointer dereference.
1018
}
1019
1020
Int startVertex = m_trees[curTree].firstIndex;
@@ -2038,3 +2038,7 @@ void W3DTreeBuffer::loadPostProcess()
2038
2039
2040
2041
+
2042
2043
2044
0 commit comments