summaryrefslogtreecommitdiff
path: root/src/scriptapi.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-03-30 21:24:37 -0400
committerkwolekr <kwolekr@minetest.net>2013-03-30 21:24:37 -0400
commitc517215bcf3c92ccef1690ad871a234e547c8435 (patch)
tree9aee34f62b843fc61aae545e39bfa13aff517139 /src/scriptapi.cpp
parent414f0275cfa014423394cc9c37ecb0151c3bd46c (diff)
downloadminetest-c517215bcf3c92ccef1690ad871a234e547c8435.tar.gz
minetest-c517215bcf3c92ccef1690ad871a234e547c8435.tar.bz2
minetest-c517215bcf3c92ccef1690ad871a234e547c8435.zip
Fix MapgenV6::generateCaves possible division by 0 and misc. cosmetic fixes
Diffstat (limited to 'src/scriptapi.cpp')
-rw-r--r--src/scriptapi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index 80abffa2b..81fcc08d3 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -727,7 +727,7 @@ static int l_register_ore(lua_State *L)
if (ore->clust_scarcity <= 0 || ore->clust_num_ores <= 0) {
errorstream << "register_ore: clust_scarcity and clust_num_ores"
- "must be greater than 0";
+ " must be greater than 0" << std::endl;
delete ore;
return 0;
}