From 3a039b1e444870eef36328fa7607af6ecbb0c862 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 13 Mar 2017 21:45:03 +0200 Subject: [PATCH] Fixed compilation error reported by GCC --- src/scripting/zscript/zcc_compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index 42abbf6e3..3cdd3c234 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1236,7 +1236,7 @@ bool ZCCCompiler::CompileFields(PStruct *type, TArray &Fiel if (OutNamespace->Symbols.AddSymbol(field) == nullptr) { // name is already in use field->Destroy(); - return nullptr; + return false; } } }