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