mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
clang'd
This commit is contained in:
parent
5f6bd5466f
commit
5a8c6df633
2 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue