next iteration.

This commit is contained in:
kimkulling
2020-08-31 16:10:38 +02:00
parent 6d5c388780
commit e62b4e5cce
4 changed files with 10 additions and 6 deletions

View File

@@ -926,7 +926,7 @@ void ColladaParser::ReadLight(XmlNode &node, Collada::Light &pLight) {
XmlNodeIterator xmlIt;
xmlIt.collectChildrenPreOrder(node);
XmlNode currentNode;
while (xmlIt.getNext(currentNode)) {
while (xmlIt.getNext(&currentNode)) {
const std::string &currentName = currentNode.name();
if (currentName == "spot") {
pLight.mType = aiLightSource_SPOT;