Browse Source

Merge pull request #39089 from mrushyendra/localVectorBug

Fix unsigned integer bug in LocalVector::erase
Rémi Verschelde 5 years ago
parent
commit
52814d111c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/local_vector.h

+ 1 - 1
core/local_vector.h

@@ -75,7 +75,7 @@ public:
 	}
 
 	void erase(const T &p_val) {
-		U idx = find(p_val);
+		int64_t idx = find(p_val);
 		if (idx >= 0) {
 			remove(idx);
 		}