From 6c23b5720815b4e7c22410166eeb6284c4f465c6 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Sat, 27 Jan 2018 17:30:01 +0200 Subject: [PATCH] 3DS: Pass name to Node constructor --- code/3DSLoader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/3DSLoader.cpp b/code/3DSLoader.cpp index 73bfba748..1dd3ad4be 100644 --- a/code/3DSLoader.cpp +++ b/code/3DSLoader.cpp @@ -686,8 +686,7 @@ void Discreet3DSImporter::ParseHierarchyChunk(uint16_t parent) pcNode->mInstanceCount++; instanceNumber = pcNode->mInstanceCount; } - pcNode = new D3DS::Node(); - pcNode->mName = name; + pcNode = new D3DS::Node(name); pcNode->mInstanceNumber = instanceNumber; // There are two unknown values which we can safely ignore