Add NULL terminations to EnumString definitions
authorPerttu Ahola <celeron55@gmail.com>
Tue, 29 Nov 2011 14:41:49 +0000 (16:41 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:57 +0000 (19:13 +0200)
src/scriptapi.cpp

index 8191879763bb92d85ab337f630d679a23bd8fcee..3918bdfc36b31b94ee9cb800eb845c0705240ed2 100644 (file)
@@ -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},
 };
 
 /*