You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Added/Fixed null pointer checks
This commit is contained in:
@@ -30,17 +30,14 @@
|
||||
#include "broad_phase_basic.h"
|
||||
#include "list.h"
|
||||
#include "print_string.h"
|
||||
BroadPhaseSW::ID BroadPhaseBasic::create(CollisionObjectSW *p_object_, int p_subindex) {
|
||||
BroadPhaseSW::ID BroadPhaseBasic::create(CollisionObjectSW *p_object, int p_subindex) {
|
||||
|
||||
if (p_object_ == NULL) {
|
||||
|
||||
ERR_FAIL_COND_V(p_object_ == NULL, 0);
|
||||
}
|
||||
ERR_FAIL_COND_V(p_object == NULL, NULL);
|
||||
|
||||
current++;
|
||||
|
||||
Element e;
|
||||
e.owner = p_object_;
|
||||
e.owner = p_object;
|
||||
e._static = false;
|
||||
e.subindex = p_subindex;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user