
15.12.2021, 00:51
|
|
Новичок
Регистрация: 07.03.2017
Сообщений: 26
С нами:
4834459
Репутация:
53
|
|
C2440 =: невозможно преобразовать "CarPlateRasters *" в "RwTexture *"
C2440 =: невозможно преобразовать "PlateMaterials *" в "RpMaterial *"
Выделил строчки, где ошибка.
C++:
Код:
bool
__thiscall Vehicle
::
CustomCarPlateTextureCreate
(
CVehicle
*
instance
,
CVehicleModelInfo
*
model
)
{
[
B
]
instance
->
m_pCustomCarPlate
=
new
CarPlateRasters
(
)
;
[
/
B
]
return
true
;
}
C++:
Код:
void
__thiscall VehicleModelInfo
::
SetCarCustomPlate
(
CVehicleModelInfo
*
instance
)
{
if
(
instance
->
m_pPlateMaterial
)
{
PlateMaterials
*
plateMaterials
=
reinterpret_cast
(
instance
->
m_pPlateMaterial
)
;
delete
plateMaterials
;
}
instance
->
m_pPlateMaterial
=
nullptr
;
instance
->
m_szPlateText
[
0
]
=
0
;
instance
->
m_nPlateType
=
-
1
;
if
(
PlateMaterials
*
plateMaterials
=
CustomCarPlateManager
::
SetupClump
(
reinterpret_cast
(
instance
->
m_pRwObject
)
)
;
plateMaterials
)
{
[
B
]
instance
->
m_pPlateMaterial
=
plateMaterials
;
[
/
B
]
}
}
|
|
|