aboutsummaryrefslogtreecommitdiff
path: root/src/cavegen.h
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2014-08-07 15:39:12 +1000
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-08-23 06:40:27 +0200
commitf33d31693ed2ab7d2a29320181b6aba2c12f76d3 (patch)
treeb440bfeb24c4beddd5a73ea7ab4f9c4452733a39 /src/cavegen.h
parent996ea60642c5d78fc915573af0641d78bc7e2d49 (diff)
downloadminetest-f33d31693ed2ab7d2a29320181b6aba2c12f76d3.tar.gz
minetest-f33d31693ed2ab7d2a29320181b6aba2c12f76d3.tar.bz2
minetest-f33d31693ed2ab7d2a29320181b6aba2c12f76d3.zip
Fix seg fault if popping from empty stack (L-system trees)
See: https://github.com/minetest/minetest/issues/1525 Background Wuzzy2: If you attempt to spawn a L-system tree with minetest.spawn_tree, you can make Minetest crash if it is attempted to pop an empty stack. ShadowNinja: This shouldn't cause a segmentation fault, but it should throw a Lua error Commit Description This commit throws a Lua error instead of causing a segmentation fault. The server will still "crash" but will include a Lua backtrace. L-Systems fix randomness Unless a random seed is provided (via Lua treedef) seed the PRNG with a different seed for each tree Resolves: https://github.com/minetest/minetest/issues/1469 Fix l-system crash when treedef random_level not set by Lua
Diffstat (limited to 'src/cavegen.h')
0 files changed, 0 insertions, 0 deletions
='#n120'>120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247