mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 11:49:09 +00:00
Fix crash when loading converted Age.
This commit is contained in:
@ -650,7 +650,10 @@ int plSimulationMgr::GetMaterialIdx(NxScene* scene, float friction, float restit
|
||||
desc.dynamicFriction = friction;
|
||||
desc.staticFriction = friction;
|
||||
NxMaterial* mat = scene->createMaterial(desc);
|
||||
if (mat)
|
||||
return mat->getMaterialIndex();
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
Reference in New Issue
Block a user