From 400b94ed3d74f6789d0baee254baa127964c30f8 Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Fri, 19 Feb 2021 11:40:25 +0000 Subject: [PATCH] Apply suggestions from code review --- code/game/objects/structures/disaster_counter.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/objects/structures/disaster_counter.dm b/code/game/objects/structures/disaster_counter.dm index 5530af68655..8c7432ca0d4 100644 --- a/code/game/objects/structures/disaster_counter.dm +++ b/code/game/objects/structures/disaster_counter.dm @@ -46,6 +46,7 @@ if(counter_id != paranoid_sanitize(counter_id)) stack_trace("Counter ID did not pass sanitization for disaster counter at [x],[y],[z]. Potential attempt at filesystem manipulation.") qdel(src) + return var/savefile/S = new /savefile("data/disaster_counters/[counter_id].sav") S["count"] >> current_count @@ -69,6 +70,7 @@ if(counter_id != paranoid_sanitize(counter_id)) stack_trace("Counter ID did not pass sanitization for disaster counter at [x],[y],[z]. Potential attempt at filesystem manipulation.") qdel(src) + return var/savefile/S = new /savefile("data/disaster_counters/[counter_id].sav")