Whoopsies

This commit is contained in:
Louvenarde 2021-11-08 18:05:49 +01:00
parent b63cdc6632
commit 08054af027
2 changed files with 2 additions and 2 deletions

View File

@ -521,7 +521,7 @@ namespace Components
const_cast<char*>("Disabled"), const_cast<char*>("Disabled"),
const_cast<char*>("Scene Models"), const_cast<char*>("Scene Models"),
const_cast<char*>("Scene Dynamic Objects"), const_cast<char*>("Scene Dynamic Objects"),
const_cast<char*>("GfxWorld Static Models") const_cast<char*>("GfxWorld Static Models"),
nullptr nullptr
}; };

View File

@ -152,7 +152,7 @@ namespace Utils
float Vec3SqrDistance(float(*v1)[3], float(*v2)[3]) float Vec3SqrDistance(float(*v1)[3], float(*v2)[3])
{ {
return (std::pow((*v2)[0] - (*v1)[0], 2) + std::pow((*v2)[1] - (*v1)[1], 2) + std::pow((*v2)[2] - (*v1)[2], 2)); return static_cast<float>(std::pow((*v2)[0] - (*v1)[0], 2) + std::pow((*v2)[1] - (*v1)[1], 2) + std::pow((*v2)[2] - (*v1)[2], 2));
} }