Merge pull request #343 from matheuslessarodrigues/tic_0.47.0

just that small micro-optimisation suggested in previous PR
This commit is contained in:
Vadim Grigoruk 2017-10-17 21:25:41 +03:00 committed by GitHub
commit 6f3b87b681
1 changed files with 1 additions and 1 deletions

View File

@ -2318,7 +2318,7 @@ static void tryReloadCode(Console* console, char* codeBuffer)
static void cmdInjectCode(Console* console, const char* param, const char* name)
{
bool watch = strcmp(param, "-code-watch") == 0;
if(strcmp(param, "-code") == 0 || watch)
if(watch || strcmp(param, "-code") == 0)
{
bool loaded = loadFileIntoBuffer(console, &embed.file.code.data, name);