simplify_debugging
Mads Buvik Sandvei 2 years ago
parent 5f6bd5466f
commit 5a8c6df633

@ -658,7 +658,7 @@ namespace ESM
const std::array<std::string, MagicEffect::Length>& strings)
{
std::map<std::string_view, int, Misc::StringUtils::CiComp> map;
for (int i = 0; i < strings.size(); i++)
for (int i = 0; i < (int)strings.size(); i++)
map[strings[i]] = i;
return map;
@ -731,7 +731,7 @@ namespace ESM
const std::string& MagicEffect::effectIdToGmstString(int effectID)
{
if (effectID >= sGmstEffectIds.size() || effectID < 0)
if (effectID >= (int)sGmstEffectIds.size() || effectID < 0)
throw std::runtime_error(std::string("Unimplemented effect ID ") + std::to_string(effectID));
return sGmstEffectIds[effectID];
@ -739,7 +739,7 @@ namespace ESM
const std::string& MagicEffect::effectIdToName(int effectID)
{
if (effectID >= sEffectNames.size() || effectID < 0)
if (effectID >= (int)sEffectNames.size() || effectID < 0)
throw std::runtime_error(std::string("Unimplemented effect ID ") + std::to_string(effectID));
return sEffectNames[effectID];

@ -1,8 +1,8 @@
#ifndef OPENMW_ESM_MGEF_H
#define OPENMW_ESM_MGEF_H
#include <map>
#include <array>
#include <map>
#include <string>
#include <string_view>

Loading…
Cancel
Save