Add NULL terminations to EnumString definitions

This commit is contained in:
Perttu Ahola 2011-11-29 16:41:49 +02:00
parent c8211ceb3e
commit dde22d26a8

@ -407,6 +407,7 @@ struct EnumString es_ContentParamType[] =
{CPT_LIGHT, "light"}, {CPT_LIGHT, "light"},
{CPT_MINERAL, "mineral"}, {CPT_MINERAL, "mineral"},
{CPT_FACEDIR_SIMPLE, "facedir_simple"}, {CPT_FACEDIR_SIMPLE, "facedir_simple"},
{0, NULL},
}; };
struct EnumString es_LiquidType[] = struct EnumString es_LiquidType[] =
@ -414,6 +415,7 @@ struct EnumString es_LiquidType[] =
{LIQUID_NONE, "none"}, {LIQUID_NONE, "none"},
{LIQUID_FLOWING, "flowing"}, {LIQUID_FLOWING, "flowing"},
{LIQUID_SOURCE, "source"}, {LIQUID_SOURCE, "source"},
{0, NULL},
}; };
struct EnumString es_NodeBoxType[] = struct EnumString es_NodeBoxType[] =
@ -421,6 +423,7 @@ struct EnumString es_NodeBoxType[] =
{NODEBOX_REGULAR, "regular"}, {NODEBOX_REGULAR, "regular"},
{NODEBOX_FIXED, "fixed"}, {NODEBOX_FIXED, "fixed"},
{NODEBOX_WALLMOUNTED, "wallmounted"}, {NODEBOX_WALLMOUNTED, "wallmounted"},
{0, NULL},
}; };
struct EnumString es_Diggability[] = struct EnumString es_Diggability[] =
@ -428,6 +431,7 @@ struct EnumString es_Diggability[] =
{DIGGABLE_NOT, "not"}, {DIGGABLE_NOT, "not"},
{DIGGABLE_NORMAL, "normal"}, {DIGGABLE_NORMAL, "normal"},
{DIGGABLE_CONSTANT, "constant"}, {DIGGABLE_CONSTANT, "constant"},
{0, NULL},
}; };
/* /*