mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
Fine to use strcpy here
This commit is contained in:
parent
0b87f0e2ee
commit
45133d12c4
2 changed files with 7 additions and 7 deletions
|
@ -2638,8 +2638,8 @@ void Patch_SA_10()
|
|||
|
||||
// Fixed police scanner names
|
||||
char* pScannerNames = *(char**)0x4E72D4;
|
||||
strncpy(pScannerNames + (8*113), "WESTP", 8);
|
||||
strncpy(pScannerNames + (8*134), "????", 8);
|
||||
strcpy(pScannerNames + (8*113), "WESTP");
|
||||
strcpy(pScannerNames + (8*134), "????");
|
||||
}
|
||||
|
||||
void Patch_SA_11()
|
||||
|
@ -2903,8 +2903,8 @@ void Patch_SA_11()
|
|||
|
||||
// Fixed police scanner names
|
||||
char* pScannerNames = *(char**)0x4E7714;
|
||||
strncpy(pScannerNames + (8*113), "WESTP", 8);
|
||||
strncpy(pScannerNames + (8*134), "????", 8);
|
||||
strcpy(pScannerNames + (8*113), "WESTP");
|
||||
strcpy(pScannerNames + (8*134), "????");
|
||||
|
||||
|
||||
// 1.01 ONLY
|
||||
|
@ -3147,8 +3147,8 @@ void Patch_SA_Steam()
|
|||
|
||||
// Fixed police scanner names
|
||||
char* pScannerNames = *(char**)0x4F2B83;
|
||||
strncpy(pScannerNames + (8*113), "WESTP", 8);
|
||||
strncpy(pScannerNames + (8*134), "????", 8);
|
||||
strcpy(pScannerNames + (8*113), "WESTP");
|
||||
strcpy(pScannerNames + (8*134), "????");
|
||||
|
||||
// STEAM ONLY
|
||||
// Proper aspect ratios - why Rockstar, why?
|
||||
|
|
|
@ -87,7 +87,7 @@ bool CVehicle::CustomCarPlate_TextureCreate(CVehicleModelInfo* pModelInfo)
|
|||
const char* pOverrideText = pModelInfo->GetCustomCarPlateText();
|
||||
|
||||
if ( pOverrideText )
|
||||
strncpy(PlateText, pOverrideText, 8);
|
||||
strcpy_s(PlateText, pOverrideText);
|
||||
else
|
||||
CCustomCarPlateMgr::GeneratePlateText(PlateText, 8);
|
||||
|
||||
|
|
Loading…
Reference in a new issue