mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
fix warnings about implicit casts
This commit is contained in:
parent
207ddcea38
commit
72175ae09e
2 changed files with 2 additions and 2 deletions
|
@ -874,7 +874,7 @@ void RenderableModelEntityItem::computeShapeInfo(ShapeInfo& info) {
|
|||
}
|
||||
|
||||
// store uniqueIndices in triangleIndices
|
||||
triangleIndices.reserve(triangleIndices.size() + uniqueIndices.size());
|
||||
triangleIndices.reserve(triangleIndices.size() + (int32_t)uniqueIndices.size());
|
||||
for (auto index : uniqueIndices) {
|
||||
triangleIndices.push_back(index);
|
||||
}
|
||||
|
|
|
@ -313,7 +313,7 @@ btCollisionShape* ShapeFactory::createShapeFromInfo(const ShapeInfo& info) {
|
|||
}
|
||||
}
|
||||
}
|
||||
uint32_t numHulls = hulls.size();
|
||||
uint32_t numHulls = (uint32_t)hulls.size();
|
||||
if (numHulls == 1) {
|
||||
shape = hulls[0];
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue