Skip to content

Commit 1aa5012

Browse files
committed
Little cleanup
1 parent 049daca commit 1aa5012

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

Client/game_sa/CAutomobileSA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class CAutomobileSAInterface : public CVehicleSAInterface
4444

4545
CObjectSAInterface* SpawnFlyingComponent(const CarNodes::Enum& nodeId, const eCarComponentCollisionTypes& collType)
4646
{
47-
return ((CObjectSAInterface * (__thiscall*)(CAutomobileSAInterface*, CarNodes::Enum, eCarComponentCollisionTypes))0x6a8580)(this, nodeId, collType);
47+
return ((CObjectSAInterface*(__thiscall*)(CAutomobileSAInterface*, CarNodes::Enum, eCarComponentCollisionTypes))0x6a8580)(this, nodeId, collType);
4848
}
4949

5050
CDamageManagerSAInterface m_damageManager;

Client/game_sa/CVehicleSA.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ void CVehicleSA::Init()
214214
// important)
215215
GetVehicleInterface()->m_pVehicle = this;
216216

217-
std::uint16_t modelIndex = GetModelIndex();
218-
CModelInfo* modelInfo = pGame->GetModelInfo(modelIndex);
217+
CModelInfo* modelInfo = pGame->GetModelInfo(GetModelIndex());
219218

220219
if (modelInfo != nullptr)
221220
{

Client/game_sa/CVehicleSA.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ class CAutomobileSAInterface;
427427
class CVehicleSA : public virtual CVehicle, public virtual CPhysicalSA
428428
{
429429
friend class CPoolsSA;
430-
friend class CAutomobileSA;
431430

432431
protected:
433432
static std::unordered_map<std::uint16_t, ModelFeaturesArray> m_modelSpecialFeatures;

0 commit comments

Comments
 (0)