From 4ee7827d2cb2e934ee47e0aa2e2596c95fa51a85 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 11 Jan 2019 12:50:50 +0200 Subject: [PATCH] - fixed compilation of POSIX targets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit src/posix/sdl/i_main.cpp:165:59: error: ‘vp’ was not declared in this scope src/scripting/backend/codegen.cpp:6286:69: error: invalid initialization of non-const reference of type ‘FArgumentList& {aka TDeletingArray&}’ from an rvalue of type ‘FArgumentList {aka TDeletingArray}’ --- src/posix/sdl/i_main.cpp | 1 + src/scripting/backend/codegen.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/posix/sdl/i_main.cpp b/src/posix/sdl/i_main.cpp index 9527ba6325..9daad08657 100644 --- a/src/posix/sdl/i_main.cpp +++ b/src/posix/sdl/i_main.cpp @@ -162,6 +162,7 @@ static int DoomSpecificInfo (char *buffer, char *end) } else { + auto &vp = r_viewpoint; p += snprintf (buffer+p, size-p, "\n\nCurrent map: %s", vp.camera->Level->MapName.GetChars()); if (!viewactive) diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index ace2eca1ad..820caab277 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -6283,7 +6283,8 @@ FxExpression *FxIdentifier::ResolveMember(FCompileContext &ctx, PContainerType * { if ((sym = objtype->Symbols.FindSymbolInTable(gettername, symtbl)) != nullptr) { - FxExpression *x = new FxMemberFunctionCall(object, gettername, FArgumentList(), ScriptPosition); + FArgumentList argsList; + FxExpression *x = new FxMemberFunctionCall(object, gettername, argsList, ScriptPosition); x = x->Resolve(ctx); delete this; return x;