Return by reference.

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

No files matched your search

+1 -1
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)
{
+1 -1
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.