Преглед изворни кода

Merge pull request #89 from Zylann/fix_rid_valid

Fix RID::is_valid()
Thomas Herzog пре 7 година
родитељ
комит
8601a4678e
1 измењених фајлова са 1 додато и 1 уклоњено
  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;