From cf27c4a0249a72f5d0d1a88174e14426c771ae04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:37:56 +0200 Subject: [PATCH] Implement TIdentifier specialization for Intent --- src/openrct2/windows/Intent.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/openrct2/windows/Intent.h b/src/openrct2/windows/Intent.h index 77c5ecbb03..962479ea52 100644 --- a/src/openrct2/windows/Intent.h +++ b/src/openrct2/windows/Intent.h @@ -10,6 +10,7 @@ #pragma once #include "../common.h" +#include "../core/Identifier.hpp" #include "../interface/Window.h" #include @@ -54,6 +55,12 @@ public: Intent* putExtra(uint32_t key, int32_t value); Intent* putExtra(uint32_t key, std::string value); Intent* putExtra(uint32_t key, close_callback value); + + template Intent* putExtra(uint32_t key, const TIdentifier& value) + { + const auto val = value.ToUnderlying(); + return putExtra(key, static_cast(val)); + } }; enum