mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-05 17:49:42 +00:00
Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
e97e4d07dd
commit
fbeccc2908
1 changed files with 1 additions and 7 deletions
|
@ -110,13 +110,7 @@ struct FIXED_STRING<4> : public FIXED_STRING_BASE<FIXED_STRING, 4>
|
||||||
void assign(const std::string& value)
|
void assign(const std::string& value)
|
||||||
{
|
{
|
||||||
intval = 0;
|
intval = 0;
|
||||||
switch(value.size()) {
|
std::memcpy(data, value.data(), std::min(value.size(), 4));
|
||||||
case 4: data[3] = value[3];
|
|
||||||
case 3: data[2] = value[2];
|
|
||||||
case 2: data[1] = value[1];
|
|
||||||
case 1: data[0] = value[0];
|
|
||||||
default: break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue