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:
parent
dd780dbd02
commit
f11622177e
@ -82,7 +82,7 @@ struct InitCustomVehicleNames
|
|||||||
} g_InitCustomVehicleNames{};
|
} g_InitCustomVehicleNames{};
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
String GetAutomobileName(uint32_t id)
|
String & GetAutomobileName(uint32_t id)
|
||||||
{
|
{
|
||||||
if (id > 129 && id < 237)
|
if (id > 129 && id < 237)
|
||||||
{
|
{
|
||||||
|
@ -9,7 +9,7 @@ namespace SqMod {
|
|||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* Retrieve the name associated with a vehicle model identifier.
|
* 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.
|
* Modify the name associated with a vehicle model identifier.
|
||||||
|
Loading…
Reference in New Issue
Block a user