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…
Reference in New Issue