mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-03 03:36:10 +00:00
CModel: Simplify InternalGetIBO() a little
We can use the result of the emplace_back directly.
This commit is contained in:
parent
79f7b62960
commit
77248960f8
@ -321,6 +321,5 @@ CIndexBuffer* CModel::InternalGetIBO(size_t Surface, EPrimitiveType Primitive)
|
|||||||
return &pIBOs[iIBO];
|
return &pIBOs[iIBO];
|
||||||
}
|
}
|
||||||
|
|
||||||
pIBOs.emplace_back(CIndexBuffer(Type));
|
return &pIBOs.emplace_back(Type);
|
||||||
return &pIBOs.back();
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user