Fixed warning C4018: '<': signed/unsigned mismatch

pull/3127/head
Marc-Antoine Lortie 2020-04-03 10:07:44 -04:00
parent e67ddd0ca1
commit 4bae1d2596
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ bool ModelLoader::Load(HWND hwnd, ID3D11Device * dev, ID3D11DeviceContext * devc
} }
void ModelLoader::Draw(ID3D11DeviceContext * devcon) { void ModelLoader::Draw(ID3D11DeviceContext * devcon) {
for (int i = 0; i < meshes_.size(); ++i ) { for (size_t i = 0; i < meshes_.size(); ++i ) {
meshes_[i].Draw(devcon); meshes_[i].Draw(devcon);
} }
} }
@ -132,7 +132,7 @@ void ModelLoader::Close() {
for (auto& t : textures_loaded_) for (auto& t : textures_loaded_)
t.Release(); t.Release();
for (int i = 0; i < meshes_.size(); i++) { for (size_t i = 0; i < meshes_.size(); i++) {
meshes_[i].Close(); meshes_[i].Close();
} }
} }