Browse Source

Merge pull request #41372 from akien-mga/fix-uint32_t-warning

Fix warning using ERR_FAIL_INDEX on unsigned int
Rémi Verschelde 5 years ago
parent
commit
d3bd84d705
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/rid_owner.h

+ 1 - 1
core/rid_owner.h

@@ -236,7 +236,7 @@ public:
 	}
 
 	_FORCE_INLINE_ T *get_ptr_by_index(uint32_t p_index) {
-		ERR_FAIL_INDEX_V(p_index, alloc_count, nullptr);
+		ERR_FAIL_UNSIGNED_INDEX_V(p_index, alloc_count, nullptr);
 		if (THREAD_SAFE) {
 			spin_lock.lock();
 		}