瀏覽代碼

base: crash with an assert error if trying to access a read-only map

with a nonexistent key.
legacy
Sam Hocevar sam 11 年之前
父節點
當前提交
7181860ee6
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. +1
    -0
      src/lol/base/map.h

+ 1
- 0
src/lol/base/map.h 查看文件

@@ -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…
取消
儲存