mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-11 17:01:22 +00:00
fixes to zones and vehicle comp rules
This commit is contained in:
parent
0a19925e99
commit
56b80cb0ab
3 changed files with 28 additions and 40 deletions
|
@ -211,7 +211,7 @@ CVehicleModelInfo::CreateInstance(void)
|
|||
clumpframe = RpClumpGetFrame(clump);
|
||||
|
||||
comp1 = ChooseComponent();
|
||||
if(comp1 != -1){
|
||||
if(comp1 != -1 && m_comps[comp1]){
|
||||
atomic = RpAtomicClone(m_comps[comp1]);
|
||||
f = RwFrameCreate();
|
||||
RwFrameTransform(f,
|
||||
|
@ -224,7 +224,7 @@ CVehicleModelInfo::CreateInstance(void)
|
|||
ms_compsUsed[0] = comp1;
|
||||
|
||||
comp2 = ChooseSecondComponent();
|
||||
if(comp2 != -1){
|
||||
if(comp2 != -1 && m_comps[comp2]){
|
||||
atomic = RpAtomicClone(m_comps[comp2]);
|
||||
f = RwFrameCreate();
|
||||
RwFrameTransform(f,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue