1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-20 04:09:16 +00:00

Fix null pointer dereference in plSimulationMgr::InitSimulation.

This would cause game to crash with a stack dump if PhysX is not installed on the user's machine. See also:

    https://mystonline.com/forums/viewtopic.php?p=430761#p430761
    https://mystonline.com/forums/viewtopic.php?f=40&t=29221
    https://mystonline.com/forums/viewtopic.php?f=40&t=29218

As I originally proposed 6 years ago, we could eliminate the issue of PhysX being uninstalled by updating the included PhysX_Setup.exe with the NVIDIA PhysX Legacy Installer. Details here[http://forums.openuru.org/viewtopic.php?f=92&t=870].
This commit is contained in:
2020-04-12 13:38:14 -06:00
committed by rarified
parent d0d7912ba6
commit 9e1d8446ca

View File

@ -369,7 +369,6 @@ bool plSimulationMgr::InitSimulation()
fSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION, &gHeapAllocator, &gErrorStream); fSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION, &gHeapAllocator, &gErrorStream);
if (!fSDK) if (!fSDK)
{ {
fLog->AddLine("Phailed to init PhysX SDL");
return false; // client will handle this and ask user to install return false; // client will handle this and ask user to install
} }