Explorar el Código

Merge pull request #89 from Zylann/fix_rid_valid

Fix RID::is_valid()
Thomas Herzog hace 7 años
padre
commit
8601a4678e
Se han modificado 1 ficheros con 1 adiciones y 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;