Simple decorations: Fix range check for deco->deco_param2
authorAuke Kok <sofar@foo-projects.org>
Wed, 7 Dec 2016 06:08:16 +0000 (22:08 -0800)
committerparamat <mat.gregory@virginmedia.com>
Thu, 8 Dec 2016 08:38:10 +0000 (08:38 +0000)
commit5a2431a9bd9a019a47cd279ac988435b075cdabe
tree6e99dc76e8e0999d8e456f08a1138e4d0ed827b5
parent24719c6908305c9505eafc372fb4cfbbbd2fcf70
Simple decorations: Fix range check for deco->deco_param2

Allow any int value, and properly range check it before casting.
src/script/lua_api/l_mapgen.cpp