Bugfix: invalid variable still used after move (#171)
This commit is contained in:
parent
49d33bea55
commit
58ce182983
|
|
@ -280,8 +280,10 @@ namespace Nz
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
material->SetDiffuseMap(std::move(texture));
|
material->SetDiffuseMap(std::move(texture));
|
||||||
if (resizeSprite && texture && texture->IsValid())
|
const TextureRef& newTexture = material->GetDiffuseMap();
|
||||||
SetSize(Vector2f(Vector2ui(texture->GetSize())));
|
|
||||||
|
if (resizeSprite && newTexture && newTexture->IsValid())
|
||||||
|
SetSize(Vector2f(Vector2ui(newTexture->GetSize())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue