SaveLevel: fix bug?!

This commit is contained in:
hubdom 2020-12-22 22:00:59 +01:00
parent 3992797e93
commit a213549293

View File

@ -180,17 +180,19 @@ bool RestoreLevel(int client, const char[] sTarget, char[] sName = NULL_STRING,
continue;
}
Input += Target;
sValue[Input] = 0; Input++;
// Input (e.g. add)
int Parameter = Input + FindCharInString(sValue[Input], ',');
if(Input == -1)
int Parameter = FindCharInString(sValue[Input], ',');
if(Parameter == -1)
{
while((Index = FindOutput(client, sValue, 0, sValue[Target], sValue[Input])) != -1)
DeleteOutput(client, sValue, Index);
continue;
}
Parameter += Input;
sValue[Parameter] = 0; Parameter++;
// Parameter (e.g. 1)