From d5b470bc148dc858f328abd72626e2564a4e3b00 Mon Sep 17 00:00:00 2001 From: AffectedArc07 Date: Sat, 25 Jul 2020 18:20:08 +0100 Subject: [PATCH] Failure test case --- _maps/map_files/shuttles/{emergency_clown.dmm => break.dmm} | 0 code/modules/awaymissions/maploader/reader.dm | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename _maps/map_files/shuttles/{emergency_clown.dmm => break.dmm} (100%) diff --git a/_maps/map_files/shuttles/emergency_clown.dmm b/_maps/map_files/shuttles/break.dmm similarity index 100% rename from _maps/map_files/shuttles/emergency_clown.dmm rename to _maps/map_files/shuttles/break.dmm diff --git a/code/modules/awaymissions/maploader/reader.dm b/code/modules/awaymissions/maploader/reader.dm index 4c448e6416b..f034c4f39d1 100644 --- a/code/modules/awaymissions/maploader/reader.dm +++ b/code/modules/awaymissions/maploader/reader.dm @@ -31,7 +31,7 @@ GLOBAL_DATUM_INIT(_preloader, /datum/dmm_suite/preloader, new()) if(isfile(tfile)) fname = "[tfile]" // Make sure we dont load a dir up - var/lastchar = copytext(dmm_file, -1) + var/lastchar = copytext(fname, -1) if(lastchar == "/" || lastchar == "\\") log_debug("Attempted to load map template without filename (Attempted [tfile])") return