Fix warning

This commit is contained in:
SirLynix 2023-06-21 19:50:09 +02:00
parent 622b6cbec9
commit 6778d6ea33
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ namespace Nz
m_origin(0.f, 0.f)
{
Vector2ui size = Vector2ui(GetTextureSize());
m_size = (orientation == Orientation::Horizontal) ? size.x : size.y;
m_size = SafeCast<float>((orientation == Orientation::Horizontal) ? size.x : size.y);
UpdateVertices();
}