mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
HPL1: Fix nullptr deref in error message. PVS-Studio V522
This commit is contained in:
parent
558805d547
commit
1bfd160c92
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user