Fix some compilation errors due to warnings of potentially returning unitialized variables. (#5796)
Signed-off-by: moraaar <moraaar@amazon.com>
This commit is contained in:
@@ -4936,7 +4936,7 @@ AZStd::string UiTextComponent::GetLocalizedText([[maybe_unused]] const AZStd::st
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
AZ::Vector2 UiTextComponent::CalculateAlignedPositionWithYOffset(const UiTransformInterface::RectPoints& points)
|
||||
{
|
||||
AZ::Vector2 pos;
|
||||
AZ::Vector2 pos = AZ::Vector2::CreateZero();
|
||||
const DrawBatchLines& drawBatchLines = GetDrawBatchLines();
|
||||
size_t numLinesOfText = drawBatchLines.batchLines.size();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user