aboutsummaryrefslogtreecommitdiff
path: root/RelicManager.cpp
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-10-30 12:26:48 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-10-30 12:26:48 +0100
commit51787d2240b8836b31e38e0590090bbb9041d8c2 (patch)
tree9d18db6661cc208a1ae4dba8097437a6a09ab39c /RelicManager.cpp
parentf873d61f36a46c42cc444dcb596f0d354ae3d202 (diff)
parent822b531a4f9b8120f1126fbaec085b8b6fab4c57 (diff)
Merge branch 'master' of https://github.com/simonsan/Age_of_Empires_II_Definitive-Edition-SDKHEADmaster
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'RelicManager.cpp')
-rw-r--r--RelicManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/RelicManager.cpp b/RelicManager.cpp
index 74d259a..db5306c 100644
--- a/RelicManager.cpp
+++ b/RelicManager.cpp
@@ -21,7 +21,7 @@ void RelicManager::OnMenuMainWindow()
{
continue;
}
- if (strcmp(unit->pUnitData->name, "RELIC") == 0)
+ if (strcmp(unit->GetUnitData()->GetName(), "RELIC") == 0)
{
relics.push_back(unit);
}
@@ -36,7 +36,7 @@ void RelicManager::OnMenuMainWindow()
if (ImGui::Button("<"))
{
currentRelic = (currentRelic - 1) % relics.size();
- Engine::Get()->GetLocalPlayer()->SetCameraPosition(relics[currentRelic]->position);
+ Engine::Get()->GetLocalPlayer()->SetCameraPosition(relics[currentRelic]->GetPosition());
}
ImGui::SameLine();
ImGui::Text("%d/%d", currentRelic + 1, relics.size());
@@ -44,7 +44,7 @@ void RelicManager::OnMenuMainWindow()
if (ImGui::Button(">"))
{
currentRelic = (currentRelic + 1) % relics.size();
- Engine::Get()->GetLocalPlayer()->SetCameraPosition(relics[currentRelic]->position);
+ Engine::Get()->GetLocalPlayer()->SetCameraPosition(relics[currentRelic]->GetPosition());
}
}
ImGui::Separator();