mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
updated sol state invocations
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user