1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Return by reference.

This commit is contained in:
Sandu Liviu Catalin 2021-03-20 11:49:26 +02:00
parent dd780dbd02
commit f11622177e
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ struct InitCustomVehicleNames
} g_InitCustomVehicleNames{};
// ------------------------------------------------------------------------------------------------
String GetAutomobileName(uint32_t id)
String & GetAutomobileName(uint32_t id)
{
if (id > 129 && id < 237)
{

View File

@ -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.