This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
base: fix a data loss bug in the avl_tree copy constructor.
undefined
Sam Hocevar
10 years ago
parent
b907e0d03d
commit
7cc072d1be
1 changed files
with
6 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-3
src/lol/base/avl_tree.h
+ 6
- 3
src/lol/base/avl_tree.h
View File
@@ -39,10 +39,13 @@ public:
avl_tree & operator=(avl_tree const & other)
{
clear();
if (&other != this)
{
clear();
for (auto it : other)
insert(it.key, it.value);
for (auto it : other)
insert(it.key, it.value);
}
return *this;
}
Write
Preview
Loading…
Cancel
Save