Permalink
Browse files

- fixed compilation of POSIX targets

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<FxExpression*>&}’ from an rvalue of type ‘FArgumentList {aka TDeletingArray<FxExpression*>}’
  • Loading branch information...
alexey-lysiuk committed Jan 11, 2019
1 parent 1b1e2ef commit 4ee7827d2cb2e934ee47e0aa2e2596c95fa51a85
Showing with 3 additions and 1 deletion.
  1. +1 −0 src/posix/sdl/i_main.cpp
  2. +2 −1 src/scripting/backend/codegen.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)
@@ -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;

0 comments on commit 4ee7827

Please sign in to comment.