diff options
-rw-r--r-- | xbmc/interfaces/python/PythonSwig.cpp.template | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/interfaces/python/PythonSwig.cpp.template b/xbmc/interfaces/python/PythonSwig.cpp.template index eef0964ebc..fb0d96a41b 100644 --- a/xbmc/interfaces/python/PythonSwig.cpp.template +++ b/xbmc/interfaces/python/PythonSwig.cpp.template @@ -163,7 +163,7 @@ void doMethod(Node method, MethodType methodType) params.each { %> ${SwigTypeParser.SwigType_str(SwigTypeParser.convertTypeToLTypeForParam(it.@type))} ${it.@name} ${it.@value != null ? ' = ' + it.@value : ''};<% - if (!PythonTools.parameterCanBeUsedDirectly(it)) + if (!PythonTools.parameterCanBeUsedDirectly(it) && !doAsMappingIndex) { %> PyObject* py${it.@name} = NULL;<% } |