You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix some code found by Coverity Scan and PVS Studio
This commit is contained in:
@@ -581,6 +581,10 @@ void SpaceBullet::create_empty_world(bool p_create_soft_world) {
|
||||
} else {
|
||||
world_mem = malloc(sizeof(btDiscreteDynamicsWorld));
|
||||
}
|
||||
if (!world_mem) {
|
||||
ERR_EXPLAIN("Out of memory");
|
||||
ERR_FAIL();
|
||||
}
|
||||
|
||||
if (p_create_soft_world) {
|
||||
collisionConfiguration = bulletnew(GodotSoftCollisionConfiguration(static_cast<btDiscreteDynamicsWorld *>(world_mem)));
|
||||
|
||||
Reference in New Issue
Block a user