CModel: Simplify InternalGetIBO() a little

We can use the result of the emplace_back directly.
This commit is contained in:
Lioncash 2020-06-15 14:55:48 -04:00
parent 79f7b62960
commit 77248960f8
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}