mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-28 06:41:47 +00:00
- 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:
parent
1b1e2ef7d2
commit
4ee7827d2c
2 changed files with 3 additions and 1 deletions
|
@ -162,6 +162,7 @@ static int DoomSpecificInfo (char *buffer, char *end)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
auto &vp = r_viewpoint;
|
||||||
p += snprintf (buffer+p, size-p, "\n\nCurrent map: %s", vp.camera->Level->MapName.GetChars());
|
p += snprintf (buffer+p, size-p, "\n\nCurrent map: %s", vp.camera->Level->MapName.GetChars());
|
||||||
|
|
||||||
if (!viewactive)
|
if (!viewactive)
|
||||||
|
|
|
@ -6283,7 +6283,8 @@ FxExpression *FxIdentifier::ResolveMember(FCompileContext &ctx, PContainerType *
|
||||||
{
|
{
|
||||||
if ((sym = objtype->Symbols.FindSymbolInTable(gettername, symtbl)) != nullptr)
|
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);
|
x = x->Resolve(ctx);
|
||||||
delete this;
|
delete this;
|
||||||
return x;
|
return x;
|
||||||
|
|
Loading…
Reference in a new issue