updated sol state invocations

This commit is contained in:
devZoGok
2023-09-03 09:05:06 +03:00
parent 799cada346
commit 8216c781c2
14 changed files with 43 additions and 22 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
#include <cmath>
#include <vector.h>
#include <stateManager.h>
#include <solUtil.h>
#include <stateManager.h>
#include "consoleCommand.h"
#include "inGameAppState.h"
@@ -62,7 +62,7 @@ namespace battleship{
int unitId = atoi(fullCommand[2].c_str());
if(!(0 <= unitId && unitId <= (int)SOL_LUA_STATE["numUnits"]))
if(!(0 <= unitId && unitId <= (int)generateView()["numUnits"]))
return;
}