Dungeongen: Fix rarely triggered segfault
authorparamat <mat.gregory@virginmedia.com>
Mon, 30 Nov 2015 01:43:28 +0000 (01:43 +0000)
committerparamat <mat.gregory@virginmedia.com>
Tue, 1 Dec 2015 00:36:38 +0000 (00:36 +0000)
commit57b429574ef92c62d202955535896b36845b88db
tree6e481c15a2cf3e354e44e0698bca53728da0cfc2
parent6fead2818acf00a63c89ec613230a59bc0c4cab5
Dungeongen: Fix rarely triggered segfault

A segfault exposed a missing 'vm->m_area.contains()'
check in makeCorridor that allowed the calculation
of vm index for a node outside the vm area. The huge
and invalid index number caused getContent to fail
src/dungeongen.cpp