Fix warning
This commit is contained in:
parent
622b6cbec9
commit
6778d6ea33
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue