diff --git a/RecastDemo/Source/InputGeom.cpp b/RecastDemo/Source/InputGeom.cpp index f15b9e04..49395213 100644 --- a/RecastDemo/Source/InputGeom.cpp +++ b/RecastDemo/Source/InputGeom.cpp @@ -672,7 +672,7 @@ void InputGeom::addOffMeshConnection( offmeshConnBidirectional.emplace_back(bidir); offmeshConnArea.emplace_back(area); offmeshConnFlags.emplace_back(flags); - offmeshConnId.emplace_back(1000 + (offmeshConnArea.size() - 1)); + offmeshConnId.emplace_back(1000 + (static_cast(offmeshConnArea.size()) - 1)); } void InputGeom::deleteOffMeshConnection(int i) diff --git a/RecastDemo/Source/SampleInterfaces.cpp b/RecastDemo/Source/SampleInterfaces.cpp index 355a80cb..f7f5e1c9 100644 --- a/RecastDemo/Source/SampleInterfaces.cpp +++ b/RecastDemo/Source/SampleInterfaces.cpp @@ -2,6 +2,8 @@ #include "SDL_opengl.h" +#include + #ifdef WIN32 # define snprintf _snprintf # include