further remove manual memory management
This commit is contained in:
parent
bac018d306
commit
a43b99bf51
9 changed files with 36 additions and 45 deletions
|
|
@ -212,11 +212,11 @@ namespace swrenderer
|
|||
auto flatLightList = Level->lightlists.flat_dlist.CheckKey(vis->section);
|
||||
if (flatLightList)
|
||||
{
|
||||
TMap<FDynamicLight *, FLightNode *>::Iterator it(*flatLightList);
|
||||
TMap<FDynamicLight *, FLightNode *>::Pair *pair;
|
||||
TMap<FDynamicLight *, std::unique_ptr<FLightNode>>::Iterator it(*flatLightList);
|
||||
TMap<FDynamicLight *, std::unique_ptr<FLightNode>>::Pair *pair;
|
||||
while (it.NextPair(pair))
|
||||
{
|
||||
auto node = pair->Value;
|
||||
auto node = pair->Value.get();
|
||||
if (!node) continue;
|
||||
|
||||
FDynamicLight *light = node->lightsource;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue