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
commit
7181860ee6
1 changed files with 1 additions and 0 deletions
  1. +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();
}



Loading…
Cancel
Save