From bbf2530a3cfc9b7fee381ead7542f4ced3fdc4de Mon Sep 17 00:00:00 2001 From: Menshin Date: Wed, 5 Nov 2014 14:15:30 +0100 Subject: [PATCH] Fixes the simple vars list parsing. --- code/modules/awaymissions/maploader/reader.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/awaymissions/maploader/reader.dm b/code/modules/awaymissions/maploader/reader.dm index f1550350f74..74c56dc297b 100644 --- a/code/modules/awaymissions/maploader/reader.dm +++ b/code/modules/awaymissions/maploader/reader.dm @@ -265,7 +265,7 @@ //check if this is a simple variable (as in list(var1, var2)) or an associative one (as in list(var1="foo",var2=7)) var/equal_position = findtext(text,"=",old_position, position) - var/trim_left = trim_text(copytext(text,old_position,equal_position),1)//the name of the variable, must trim quotes to build a BYOND compliant associatives list + var/trim_left = trim_text(copytext(text,old_position,(equal_position ? equal_position : position)),1)//the name of the variable, must trim quotes to build a BYOND compliant associatives list old_position = position + 1 if(equal_position)//associative var, so do the association