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:
moraaar
2021-11-22 09:57:42 +00:00
committed by GitHub
parent bb906da58c
commit 5145fceedc
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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();