mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 13:11:13 +00:00
Added/Fixed null pointer checks
This commit is contained in:
parent
53c0010932
commit
7a07895920
14 changed files with 39 additions and 47 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue