mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-31 18:36:42 +00:00
Fix compilation
This commit is contained in:
parent
fbeccc2908
commit
8a56ba6aaa
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ struct FIXED_STRING<4> : public FIXED_STRING_BASE<FIXED_STRING, 4>
|
|||
void assign(const std::string& value)
|
||||
{
|
||||
intval = 0;
|
||||
std::memcpy(data, value.data(), std::min(value.size(), 4));
|
||||
std::memcpy(data, value.data(), (value.size() < 4)? value.size(): 4);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue