[Scummvm-git-logs] scummvm master -> 903af13548c42999a80aff4853ed9dad877bde5c

bluegr noreply at scummvm.org
Fri Nov 21 21:59:50 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
903af13548 COMMON: Make RBTree::erase return a valid iterator


Commit: 903af13548c42999a80aff4853ed9dad877bde5c
    https://github.com/scummvm/scummvm/commit/903af13548c42999a80aff4853ed9dad877bde5c
Author: Dries Harnie (dries at harnie.be)
Date: 2025-11-21T23:59:46+02:00

Commit Message:
COMMON: Make RBTree::erase return a valid iterator

... instead of the one just invalidated.

Changed paths:
    common/rb_tree.h


diff --git a/common/rb_tree.h b/common/rb_tree.h
index 0b261689674..a642ec5351c 100644
--- a/common/rb_tree.h
+++ b/common/rb_tree.h
@@ -251,7 +251,7 @@ public:
 		Node *const z = it._current;
 		Node *y = z;
 		assert(y);
-		const auto ret = it++;
+		const auto ret = ++it;
 		Color y_prev_color = y->color;
 		Node *x;
 		Node *xp = nullptr;




More information about the Scummvm-git-logs mailing list