Explorar o código

Merge pull request #89 from Zylann/fix_rid_valid

Fix RID::is_valid()
Thomas Herzog %!s(int64=7) %!d(string=hai) anos
pai
achega
8601a4678e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/core/RID.hpp

+ 1 - 1
include/core/RID.hpp

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