Fix msvc error due to narrowing conversion
This commit is contained in:
parent
a13c29875f
commit
114017d550
@ -33,11 +33,11 @@ std::vector<StructPropertyAlias> const &Particle::GetPropertyAliases()
|
||||
return aliases;
|
||||
}
|
||||
|
||||
std::vector<int> const &Particle::PossiblyCarriesType()
|
||||
std::vector<unsigned int> const &Particle::PossiblyCarriesType()
|
||||
{
|
||||
struct DoOnce
|
||||
{
|
||||
std::vector<int> indices = {
|
||||
std::vector<unsigned int> indices = {
|
||||
FIELD_LIFE,
|
||||
FIELD_CTYPE,
|
||||
FIELD_TMP,
|
||||
|
@ -18,7 +18,7 @@ struct Particle
|
||||
by higher-level processes referring to them by name such as Lua or the property tool **/
|
||||
static std::vector<StructProperty> const &GetProperties();
|
||||
static std::vector<StructPropertyAlias> const &GetPropertyAliases();
|
||||
static std::vector<int> const &PossiblyCarriesType();
|
||||
static std::vector<unsigned int> const &PossiblyCarriesType();
|
||||
};
|
||||
|
||||
// important: these are indices into the vector returned by Particle::GetProperties, not indices into Particle
|
||||
|
Reference in New Issue
Block a user