Browse Source

Merge pull request #89 from Zylann/fix_rid_valid

Fix RID::is_valid()
Thomas Herzog 7 years ago
parent
commit
8601a4678e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/core/RID.hpp

+ 1 - 1
include/core/RID.hpp

@@ -19,7 +19,7 @@ public:
 
 
 	inline bool is_valid() const {
 	inline bool is_valid() const {
 		// is_valid() is not available in the C API...
 		// is_valid() is not available in the C API...
-		return *this == RID();
+		return *this != RID();
 	}
 	}
 
 
 	bool operator==(const RID & p_other) const;
 	bool operator==(const RID & p_other) const;