mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Merge pull request #34028 from nekomatata/list-erase-not-found
Removed errors when List::erase() can't find the value
This commit is contained in:
commit
c069f5f5ca
@ -348,7 +348,7 @@ public:
|
|||||||
* erase an element in the list, by iterator pointing to it. Return true if it was found/erased.
|
* erase an element in the list, by iterator pointing to it. Return true if it was found/erased.
|
||||||
*/
|
*/
|
||||||
bool erase(const Element *p_I) {
|
bool erase(const Element *p_I) {
|
||||||
if (_data) {
|
if (_data && p_I) {
|
||||||
bool ret = _data->erase(p_I);
|
bool ret = _data->erase(p_I);
|
||||||
|
|
||||||
if (_data->size_cache == 0) {
|
if (_data->size_cache == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user