summaryrefslogtreecommitdiff
path: root/modules/gdnavigation/rvo_agent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdnavigation/rvo_agent.cpp')
-rw-r--r--modules/gdnavigation/rvo_agent.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/gdnavigation/rvo_agent.cpp b/modules/gdnavigation/rvo_agent.cpp
index 677e525bbf..1e1bdbd07d 100644
--- a/modules/gdnavigation/rvo_agent.cpp
+++ b/modules/gdnavigation/rvo_agent.cpp
@@ -36,8 +36,7 @@
@author AndreaCatania
*/
-RvoAgent::RvoAgent() :
- map(NULL) {
+RvoAgent::RvoAgent() {
callback.id = ObjectID();
}
@@ -70,7 +69,7 @@ void RvoAgent::dispatch_callback() {
return;
}
Object *obj = ObjectDB::get_instance(callback.id);
- if (obj == NULL) {
+ if (obj == nullptr) {
callback.id = ObjectID();
}