From 17b97e5d1bb88fd130a248f294953fb410083adb Mon Sep 17 00:00:00 2001 From: Rubidium Date: Sun, 9 Feb 2025 17:25:40 +0100 Subject: [PATCH] Codechange: introduce ConvertibleThroughBase helper --- src/command_type.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/command_type.h b/src/command_type.h index ccc82534f2..0a28bcc794 100644 --- a/src/command_type.h +++ b/src/command_type.h @@ -215,6 +215,7 @@ public: }; CommandCost CommandCostWithParam(StringID str, uint64_t value); +CommandCost CommandCostWithParam(StringID str, ConvertibleThroughBase auto value) { return CommandCostWithParam(str, value.base()); } /** * List of commands.