HPL1: Fix nullptr deref in error message. PVS-Studio V522

This commit is contained in:
sluicebox 2023-10-31 14:20:28 -07:00
parent 558805d547
commit 1bfd160c92

View File

@ -124,7 +124,7 @@ void cGameLiquidArea::SetPhysicsMaterial(const tString asName) {
mpPhysicsMaterial = pPhysicsWorld->GetMaterialFromName(asName);
if (mpPhysicsMaterial == NULL) {
Error("Liquid '%s' could not find material '%s'\n", GetName().c_str(),
mpPhysicsMaterial->GetName().c_str());
asName.c_str());
}
}