diff --git a/module/Misc/Vehicle.cpp b/module/Misc/Vehicle.cpp index 64f83ad1..17d4ab96 100644 --- a/module/Misc/Vehicle.cpp +++ b/module/Misc/Vehicle.cpp @@ -82,7 +82,7 @@ struct InitCustomVehicleNames } g_InitCustomVehicleNames{}; // ------------------------------------------------------------------------------------------------ -String GetAutomobileName(uint32_t id) +String & GetAutomobileName(uint32_t id) { if (id > 129 && id < 237) { diff --git a/module/Misc/Vehicle.hpp b/module/Misc/Vehicle.hpp index 142a6edf..334e30d4 100644 --- a/module/Misc/Vehicle.hpp +++ b/module/Misc/Vehicle.hpp @@ -9,7 +9,7 @@ namespace SqMod { /* ------------------------------------------------------------------------------------------------ * Retrieve the name associated with a vehicle model identifier. */ -SQMOD_NODISCARD String GetAutomobileName(uint32_t id); +SQMOD_NODISCARD String & GetAutomobileName(uint32_t id); /* ------------------------------------------------------------------------------------------------ * Modify the name associated with a vehicle model identifier.