Browse Source

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].
rarified/vs2003buildtargets
Adam Johnson 4 years ago committed by rarified
parent
commit
9e1d8446ca
  1. 1
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPhysX/plSimulationMgr.cpp

1
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPhysX/plSimulationMgr.cpp

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

Loading…
Cancel
Save