SaveLevel: fix bug?!
This commit is contained in:
parent
3992797e93
commit
a213549293
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user