Fixed entity axis index crash (was using i instead of j)

This commit is contained in:
smallmodel 2023-07-29 21:26:19 +02:00
parent 0c5b57ee05
commit 68bf89c522
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -4316,7 +4316,7 @@ void ClientGameCommandManager::UpdateEmitter(
VectorCopy(current_entity->origin, m_spawnthing->linked_origin);
for (j = 0; j < 3; j++) {
VectorMA(m_spawnthing->linked_origin, ori.origin[i], current_entity->axis[i], m_spawnthing->linked_origin);
VectorMA(m_spawnthing->linked_origin, ori.origin[i], current_entity->axis[j], m_spawnthing->linked_origin);
}
MatrixMultiply(ori.axis, current_entity->axis, m_spawnthing->linked_axis);
}