PUICompat: fix default value in configValue()
This commit is contained in:
parent
de40779109
commit
2be54f9eae
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ naRef PUICompatObject::config() const
|
|||
naRef PUICompatObject::nasalGetConfigValue(const nasal::CallContext ctx) const
|
||||
{
|
||||
auto name = ctx.requireArg<std::string>(0);
|
||||
naRef defaultVal = ctx.getArg(0, naNil());
|
||||
naRef defaultVal = ctx.getArg(1, naNil());
|
||||
SGPropertyNode_ptr nd = _config->getChild(name);
|
||||
if (!nd || !nd->hasValue())
|
||||
return defaultVal;
|
||||
|
|
Loading…
Reference in a new issue