fix: security vulnerabilities

Tested that all functions related to the touched files work

will test sqlite on a CI build
This commit is contained in:
David Markowitz
2026-06-06 23:13:09 -07:00
parent 8e09ffd6e8
commit fb166bd24d
107 changed files with 786 additions and 512 deletions

View File

@@ -109,6 +109,7 @@ void dpEntity::SetPosition(const NiPoint3& newPos) {
}
void dpEntity::SetRotation(const NiQuaternion& newRot) {
if (!m_CollisionShape) return;
m_Rotation = newRot;
if (m_CollisionShape->GetShapeType() == dpShapeType::Box) {
@@ -118,6 +119,7 @@ void dpEntity::SetRotation(const NiQuaternion& newRot) {
}
void dpEntity::SetScale(float newScale) {
if (!m_CollisionShape) return;
m_Scale = newScale;
if (m_CollisionShape->GetShapeType() == dpShapeType::Box) {

View File

@@ -87,7 +87,7 @@ void dpWorld::Shutdown() {
}
bool dpWorld::IsLoaded() {
return m_NavMesh->IsNavmeshLoaded();
return m_NavMesh && m_NavMesh->IsNavmeshLoaded();
}
void dpWorld::StepWorld(float deltaTime) {