summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s')
-rw-r--r--TemplePushing.c4s/Script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/TemplePushing.c4s/Script.c b/TemplePushing.c4s/Script.c
index 0022e8a..4cada7f 100644
--- a/TemplePushing.c4s/Script.c
+++ b/TemplePushing.c4s/Script.c
@@ -194,8 +194,8 @@ func Script0()
ambienceSounds = mode->~AmbienceSounds() || section->~SectionAmbienceSounds() || [];
mode = CreateObject(mode, 0, 0, NO_OWNER);
-
- if (mode->~Gamma()) SetGamma(mode->Gamma());
+ var modeGamma = mode->~Gamma();
+ if (modeGamma) SetGamma(modeGamma[0], modeGamma[1], modeGamma[2]);
// Create spawnpoints
if (!mode->~NoSpawnpoints())