whitespace fix

develop
eamondo2 2023-01-23 01:58:57 -05:00
parent 78c6b3683e
commit 44d8ce2bdc
2 changed files with 3 additions and 3 deletions

@ -52,4 +52,4 @@ Commands
``(no)monitor <stockpile>`` ``(no)monitor <stockpile>``
Enable/disable monitoring of a given stockpile. Works with either the stockpile's name (if set) or ID. Enable/disable monitoring of a given stockpile. Works with either the stockpile's name (if set) or ID.
If the stockpile has no custom name set, you may designate it by either the full name as reported by If the stockpile has no custom name set, you may designate it by either the full name as reported by
the status command, or by just the number. the status command, or by just the number.

@ -696,7 +696,7 @@ static int automelt_getStockpileConfig(lua_State *L) {
if (lua_isnumber(L, -1)) { if (lua_isnumber(L, -1)) {
bool found = false; bool found = false;
id = lua_tointeger(L, -1); id = lua_tointeger(L, -1);
for (auto &stockpile : world->buildings.other.STOCKPILE) { for (auto &stockpile : world->buildings.other.STOCKPILE) {
if (!isStockpile(stockpile)) continue; if (!isStockpile(stockpile)) continue;
if (id == stockpile->stockpile_number){ if (id == stockpile->stockpile_number){
@ -706,7 +706,7 @@ static int automelt_getStockpileConfig(lua_State *L) {
} }
} }
if (!found) if (!found)
return 0; return 0;