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: crash with an assert error if trying to access a read-only map
with a nonexistent key.
legacy
Sam Hocevar
sam
11 years ago
parent
14447c6061
commit
7181860ee6
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/lol/base/map.h
+ 1
- 0
src/lol/base/map.h
View File
@@ -35,6 +35,7 @@ public:
if (m_array[i].m2 == key)
return m_array[i].m3;
/* XXX: this in an error! */
ASSERT(0, "trying to read a non-existent key in map");
return V();
}
Write
Preview
Loading…
Cancel
Save