diff --git a/apps/essimporter/importer.cpp b/apps/essimporter/importer.cpp index 10fad37b0..8f6563dee 100644 --- a/apps/essimporter/importer.cpp +++ b/apps/essimporter/importer.cpp @@ -342,8 +342,8 @@ namespace ESSImport { // exterior cell -> determine cell coordinates based on position const int cellSize = 8192; - int cellX = std::floor(context.mPlayer.mObject.mPosition.pos[0]/cellSize); - int cellY = std::floor(context.mPlayer.mObject.mPosition.pos[1]/cellSize); + int cellX = static_cast(std::floor(context.mPlayer.mObject.mPosition.pos[0]/cellSize)); + int cellY = static_cast(std::floor(context.mPlayer.mObject.mPosition.pos[1] / cellSize)); context.mPlayer.mCellId.mIndex.mX = cellX; context.mPlayer.mCellId.mIndex.mY = cellY; }