From 77248960f821e52cc62a005463e916e9aef49fde Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 15 Jun 2020 14:55:48 -0400 Subject: [PATCH] CModel: Simplify InternalGetIBO() a little We can use the result of the emplace_back directly. --- src/Core/Resource/Model/CModel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Core/Resource/Model/CModel.cpp b/src/Core/Resource/Model/CModel.cpp index e10e618a..f72539c4 100644 --- a/src/Core/Resource/Model/CModel.cpp +++ b/src/Core/Resource/Model/CModel.cpp @@ -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); }