mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 18:32:35 +01:00
Codechange: Use EnumBitSet for StringValidationSettings. (#13974)
This commit is contained in:
@@ -598,7 +598,7 @@ void StringSettingDesc::MakeValueValid(std::string &str) const
|
||||
* includes the '\0' termination for network transfer purposes.
|
||||
* Also ensure the string is valid after chopping of some bytes. */
|
||||
str.erase(this->max_length - 1, std::string::npos);
|
||||
StrMakeValidInPlace(str, SVS_NONE);
|
||||
StrMakeValidInPlace(str, {});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user