Fixed index out of bounds error in volumetric features (class editor).

This commit is contained in:
Richard Helgeby 2012-11-20 23:59:43 +01:00
parent 23bc0b5dcf
commit f2044c8d9b

View File

@ -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:
{