mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +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
|
||||
subCommand = tmpCommand.substr( 0, pos );
|
||||
else
|
||||
{
|
||||
// no subcommand given
|
||||
subCommand = tmpCommand;
|
||||
return;
|
||||
}
|
||||
|
||||
if( command->getName().length() + 1 + pos + 1 < strlen( data ) )
|
||||
params = std::string( data + command->getName().length() + 1 + pos + 1 );
|
||||
|
|
Loading…
Add table
Reference in a new issue