mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
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:
@@ -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 ] )
|
||||
|
||||
Reference in New Issue
Block a user