From f2044c8d9b6d521a4d42ae0c53b7e5aa33773ae5 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Tue, 20 Nov 2012 23:59:43 +0100 Subject: [PATCH] Fixed index out of bounds error in volumetric features (class editor). --- src/zr/volfeatures/volclassedit.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zr/volfeatures/volclassedit.inc b/src/zr/volfeatures/volclassedit.inc index 79cf1a0..529f680 100644 --- a/src/zr/volfeatures/volclassedit.inc +++ b/src/zr/volfeatures/volclassedit.inc @@ -458,7 +458,7 @@ VolClassEditDumpData(dataIndex, String:buffer[], maxlen) */ VolClassEditApply(client, dataIndex) { - switch (VolClassEditData[client][VolClassEdit_Mode]) + switch (VolClassEditData[dataIndex][VolClassEdit_Mode]) { case ClassEditMode_Name: { @@ -494,7 +494,7 @@ VolClassEditRestore(client, dataIndex) { new classindex = ClassGetActiveIndex(client); - switch (VolClassEditData[client][VolClassEdit_Mode]) + switch (VolClassEditData[dataIndex][VolClassEdit_Mode]) { case ClassEditMode_Name: {