mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-01 19:03:36 +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];
|
||||
}
|
||||
|
||||
pIBOs.emplace_back(CIndexBuffer(Type));
|
||||
return &pIBOs.back();
|
||||
return &pIBOs.emplace_back(Type);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user