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; continue;
} }
Input += Target;
sValue[Input] = 0; Input++; sValue[Input] = 0; Input++;
// Input (e.g. add) // Input (e.g. add)
int Parameter = Input + FindCharInString(sValue[Input], ','); int Parameter = FindCharInString(sValue[Input], ',');
if(Input == -1) if(Parameter == -1)
{ {
while((Index = FindOutput(client, sValue, 0, sValue[Target], sValue[Input])) != -1) while((Index = FindOutput(client, sValue, 0, sValue[Target], sValue[Input])) != -1)
DeleteOutput(client, sValue, Index); DeleteOutput(client, sValue, Index);
continue; continue;
} }
Parameter += Input;
sValue[Parameter] = 0; Parameter++; sValue[Parameter] = 0; Parameter++;
// Parameter (e.g. 1) // Parameter (e.g. 1)