Fix: bad LUA functions (by sevenfm)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8254 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-06-18 21:30:39 +00:00
parent 503523a9fa
commit 0955d6ddfd
2 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -179,8 +179,8 @@ void LuaTacticalSetup(lua_State *L)
lua_setglobal( L, SOLDIER_CLASS); // We also want this class to be known to the script
// Create a soldier list type and create its object
lua_createtable (L, 256, 0);
for (int sold=0; sold < 256; sold++)
lua_createtable( L, TOTAL_SOLDIERS, 0 );
for ( int sold = 0; sold < TOTAL_SOLDIERS; ++sold )
{
lua_pushinteger( L, sold);
if (MercPtrs[ sold ] )