From 610daaf09a1bd6ee00562d52a570a97190c1fc2c Mon Sep 17 00:00:00 2001 From: David Schwietering Date: Wed, 18 Dec 2024 18:52:39 +0100 Subject: [PATCH] Fixed info text hud position saving --- scripts/gui/hud/CpHudInfoTexts.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/gui/hud/CpHudInfoTexts.lua b/scripts/gui/hud/CpHudInfoTexts.lua index b4db1d187..5df49fb24 100644 --- a/scripts/gui/hud/CpHudInfoTexts.lua +++ b/scripts/gui/hud/CpHudInfoTexts.lua @@ -226,9 +226,7 @@ function CpHudInfoTexts.loadFromXmlFile(xmlFile,baseKey) local posX = xmlFile:getValue(baseKey..CpHudInfoTexts.xmlKey.."#posX") local posY = xmlFile:getValue(baseKey..CpHudInfoTexts.xmlKey.."#posY") if posX ~= nil and posY ~= nil then - CpHudInfoTexts.savedPositions = { - posX, posY - } + g_Courseplay.infoTextsHud:moveToPosition(nil, posX, posY) end end