collecting Lua script garbage

updated vb01
This commit is contained in:
devZoGok
2026-04-24 19:39:47 +03:00
parent dfcffa0aaa
commit 37418b125e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -49,6 +49,7 @@ namespace battleship{
for(int i = 0; i < getCpuPlayers().size(); i++) {
string plStr = "game.cpuPlayers[" + to_string(i + 1) + "]";
SOL_LUA_VIEW.script("executeBtNode(" + plStr + ", " + plStr + ".behaviour)");
SOL_LUA_VIEW.collect_garbage();
}
int numPlayersWithUnits = 0;