From ddd614f815eb1c75a8a82b1c6b3273a1afa2c20e Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sat, 20 Sep 2025 16:20:47 +0200 Subject: [PATCH] Address conversion warnings in essimporter --- apps/essimporter/convertacdt.cpp | 4 ++-- apps/essimporter/converter.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/essimporter/convertacdt.cpp b/apps/essimporter/convertacdt.cpp index d9823a6c2a..defdab8a1a 100644 --- a/apps/essimporter/convertacdt.cpp +++ b/apps/essimporter/convertacdt.cpp @@ -48,8 +48,8 @@ namespace ESSImport for (int i = 0; i < ESM::Skill::Length; ++i) { npcStats.mSkills[i].mMod = 0.f; - npcStats.mSkills[i].mCurrent = actorData.mSkills[i][1]; - npcStats.mSkills[i].mBase = actorData.mSkills[i][0]; + npcStats.mSkills[i].mCurrent = static_cast(actorData.mSkills[i][1]); + npcStats.mSkills[i].mBase = static_cast(actorData.mSkills[i][0]); } npcStats.mTimeToStartDrowning = actorData.mACDT.mBreathMeter; diff --git a/apps/essimporter/converter.cpp b/apps/essimporter/converter.cpp index d439552d53..3e6b293f2c 100644 --- a/apps/essimporter/converter.cpp +++ b/apps/essimporter/converter.cpp @@ -18,7 +18,7 @@ namespace { - void convertImage(char* data, int size, int width, int height, GLenum pf, const std::string& out) + void convertImage(char* data, size_t size, int width, int height, GLenum pf, const std::string& out) { osg::ref_ptr image(new osg::Image); image->allocateImage(width, height, 1, pf, GL_UNSIGNED_BYTE);