- 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*>}’
This commit is contained in:
alexey.lysiuk 2019-01-11 12:50:50 +02:00
parent 1b1e2ef7d2
commit 4ee7827d2c
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -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;