summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-01-13 20:43:26 +0100
committerRémi Verschelde <remi@verschelde.fr>2016-01-13 20:43:26 +0100
commit0d180b8719696cc12be92683dc4cf99872143567 (patch)
tree710cf5eaa7cb2066c00c4d2be7c3ef2042a68b63 /main
parentc633a29a391c8797ace9ebb838390b318e8c91a9 (diff)
parenta44e9ebfa410f38ad545a9c8e954474d3a285705 (diff)
Merge pull request #3343 from akien-mga/pr-type-check-autoload
Fix wrong type check for autoload
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index f9bf406724..8319c415fc 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1374,7 +1374,7 @@ bool Main::start() {
} else if (res->is_type("Script")) {
Ref<Script> s = res;
StringName ibt = s->get_instance_base_type();
- bool valid_type = !ObjectTypeDB::is_type(ibt,"Node");
+ bool valid_type = ObjectTypeDB::is_type(ibt,"Node");
ERR_EXPLAIN("Script does not inherit a Node: "+path);
ERR_CONTINUE( !valid_type );