Merge pull request #915 from diamante0018/develop
[Command]: Return if empty
This commit is contained in:
commit
1f94353e1a
@ -116,6 +116,11 @@ namespace Components
|
||||
|
||||
void Command::Execute(std::string command, bool sync)
|
||||
{
|
||||
if (command.empty())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
command.append("\n"); // Make sure it's terminated
|
||||
|
||||
assert(command.size() < Game::MAX_CMD_LINE);
|
||||
|
Loading…
Reference in New Issue
Block a user