Kaynağa Gözat

Add support to numeric keys to push_key_begin()

Daniele Bartolini 12 yıl önce
ebeveyn
işleme
c90143338d
1 değiştirilmiş dosya ile 6 ekleme ve 0 silme
  1. 6 0
      engine/lua/LuaStack.h

+ 6 - 0
engine/lua/LuaStack.h

@@ -172,6 +172,12 @@ public:
 		lua_pushstring(m_state, key);
 	}
 
+	/// See Stack::push_table()
+	void push_key_begin(int32_t i)
+	{
+		lua_pushnumber(m_state, i);
+	}
+
 	/// See Stack::push_table()
 	void push_key_end()
 	{