refactor: type the IGameServices payload as a variant instead of void*

This commit is contained in:
MatthewBeshay
2026-04-08 19:40:20 +10:00
parent 8084ec7857
commit 52b4ccaea2
17 changed files with 141 additions and 92 deletions

View File

@@ -208,9 +208,9 @@ void UIScene_DebugOverlay::handlePress(F64 controlId, F64 childId) {
case eControl_Mobs: {
int id = childId;
if (id < m_mobFactories.size()) {
app.SetXuiServerAction(PlatformProfile.GetPrimaryPad(),
eXuiServerAction_SpawnMob,
(void*)m_mobFactories[id]);
app.SetXuiServerAction(
PlatformProfile.GetPrimaryPad(), eXuiServerAction_SpawnMob,
static_cast<std::int64_t>(m_mobFactories[id]));
}
} break;
case eControl_Enchantments: {