C2440 =: невозможно преобразовать "CarPlateRasters *" в "RwTexture *"
C2440 =: невозможно преобразовать "PlateMaterials *" в "RpMaterial *"
Выделил строчки, где ошибка.
bool __thiscall Vehicle::CustomCarPlateTextureCreate(CVehicle* instance, CVehicleModelInfo* model) {
[B]instance->m_pCustomCarPlate = new CarPlateRasters();[/B]
return true;
}
void __thiscall VehicleModelInfo::SetCarCustomPlate(CVehicleModelInfo* instance) {
if (instance->m_pPlateMaterial) {
PlateMaterials* plateMaterials = reinterpret_cast<PlateMaterials*>(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<RpClump*>(instance->m_pRwObject)); plateMaterials) {
[B] instance->m_pPlateMaterial = plateMaterials;[/B]
}
}