diff options
author | paramat <mat.gregory@virginmedia.com> | 2017-01-25 15:23:29 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-01-25 20:34:03 +0100 |
commit | 9f108b56d35cb607b538562ac369c457cd129eaa (patch) | |
tree | 5e79323313fa472f9cab12f99faa8806aa921ed5 /src/script/scripting_mainmenu.h | |
parent | 08911160aa5294883a7ebfb681fbf0c1a858dc78 (diff) | |
download | minetest-9f108b56d35cb607b538562ac369c457cd129eaa.tar.gz minetest-9f108b56d35cb607b538562ac369c457cd129eaa.tar.bz2 minetest-9f108b56d35cb607b538562ac369c457cd129eaa.zip |
Dungeongen: Fix out-of-voxelmanip access segfault
My recent dungeon commit allowed stairs to be placed across the full
width of corridors, but some of the new node positions accessed were
missing checks for being within the voxelmanip, causing occasional
segfaults near dungeons with corridors wider than 1 node.
Add 'vm->m_area.contains(pos)' checks just before stair position
voxelmanip access. This allows an earlier check to be removed as it
is now redundant.
Diffstat (limited to 'src/script/scripting_mainmenu.h')
0 files changed, 0 insertions, 0 deletions