aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-29 16:41:49 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:57 +0200
commitdde22d26a84dfd1820f1eb55b2016e8fc0475f5b (patch)
tree3e4f9ecf66140d00d3881e66de9d3b7914568469
parentc8211ceb3e3a9e28767e57a497f8912d6a6bdf5c (diff)
downloadminetest-dde22d26a84dfd1820f1eb55b2016e8fc0475f5b.tar.gz
minetest-dde22d26a84dfd1820f1eb55b2016e8fc0475f5b.tar.bz2
minetest-dde22d26a84dfd1820f1eb55b2016e8fc0475f5b.zip
Add NULL terminations to EnumString definitions
-rw-r--r--src/scriptapi.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp
index 819187976..3918bdfc3 100644
--- a/src/scriptapi.cpp
+++ b/src/scriptapi.cpp
@@ -407,6 +407,7 @@ struct EnumString es_ContentParamType[] =
{CPT_LIGHT, "light"},
{CPT_MINERAL, "mineral"},
{CPT_FACEDIR_SIMPLE, "facedir_simple"},
+ {0, NULL},
};
struct EnumString es_LiquidType[] =
@@ -414,6 +415,7 @@ struct EnumString es_LiquidType[] =
{LIQUID_NONE, "none"},
{LIQUID_FLOWING, "flowing"},
{LIQUID_SOURCE, "source"},
+ {0, NULL},
};
struct EnumString es_NodeBoxType[] =
@@ -421,6 +423,7 @@ struct EnumString es_NodeBoxType[] =
{NODEBOX_REGULAR, "regular"},
{NODEBOX_FIXED, "fixed"},
{NODEBOX_WALLMOUNTED, "wallmounted"},
+ {0, NULL},
};
struct EnumString es_Diggability[] =
@@ -428,6 +431,7 @@ struct EnumString es_Diggability[] =
{DIGGABLE_NOT, "not"},
{DIGGABLE_NORMAL, "normal"},
{DIGGABLE_CONSTANT, "constant"},
+ {0, NULL},
};
/*