mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 15:17:46 +00:00
Fix ADD commands
This commit is contained in:
parent
9c41c55092
commit
dbac086121
1 changed files with 0 additions and 3 deletions
|
@ -302,11 +302,8 @@ void Core::DebugCommandHandler::add( char * data, Entity::Player& player, boost:
|
||||||
// command has parameters, grab the first part
|
// command has parameters, grab the first part
|
||||||
subCommand = tmpCommand.substr( 0, pos );
|
subCommand = tmpCommand.substr( 0, pos );
|
||||||
else
|
else
|
||||||
{
|
|
||||||
// no subcommand given
|
// no subcommand given
|
||||||
subCommand = tmpCommand;
|
subCommand = tmpCommand;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( command->getName().length() + 1 + pos + 1 < strlen( data ) )
|
if( command->getName().length() + 1 + pos + 1 < strlen( data ) )
|
||||||
params = std::string( data + command->getName().length() + 1 + pos + 1 );
|
params = std::string( data + command->getName().length() + 1 + pos + 1 );
|
||||||
|
|
Loading…
Add table
Reference in a new issue