summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/station_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 177d2c786..b772da079 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -3027,8 +3027,8 @@ void TriggerWatchedCargoCallbacks(Station *st)
*/
static bool StationHandleBigTick(BaseStation *st)
{
- if (!st->IsInUse() && ++st->delete_ctr >= 8) {
- delete st;
+ if (!st->IsInUse()) {
+ if (++st->delete_ctr >= 8) delete st;
return false;
}