diff options
author | kaeza <kaeza@users.sf.net> | 2013-12-21 01:37:14 -0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-12-31 06:13:54 +0100 |
commit | 767b2e7b175db54ec29bd270280b857586b1e836 (patch) | |
tree | 6e241fa63ff9e79a8d5ba2d3d419da334276e4c3 | |
parent | 2902a29c2d5cc54f1a5623613e91ddecc7fee2a2 (diff) | |
download | minetest-767b2e7b175db54ec29bd270280b857586b1e836.tar.gz minetest-767b2e7b175db54ec29bd270280b857586b1e836.tar.bz2 minetest-767b2e7b175db54ec29bd270280b857586b1e836.zip |
Fix enum element name in Lua HUD code (position vs. pos)
-rw-r--r-- | src/script/lua_api/l_object.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp index 3a990887b..457d8ea7b 100644 --- a/src/script/lua_api/l_object.cpp +++ b/src/script/lua_api/l_object.cpp @@ -43,7 +43,8 @@ struct EnumString es_HudElementType[] = struct EnumString es_HudElementStat[] = { - {HUD_STAT_POS, "pos"}, + {HUD_STAT_POS, "position"}, + {HUD_STAT_POS, "pos"}, /* Deprecated, only for compatibility's sake */ {HUD_STAT_NAME, "name"}, {HUD_STAT_SCALE, "scale"}, {HUD_STAT_TEXT, "text"}, |