mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:53:51 +00:00
silenced some warnings
This commit is contained in:
parent
35d099a638
commit
3fd887c030
1 changed files with 2 additions and 2 deletions
|
@ -138,11 +138,11 @@ void ESMWriter::writeHNString(const std::string& name, const std::string& data)
|
||||||
|
|
||||||
void ESMWriter::writeHNString(const std::string& name, const std::string& data, int size)
|
void ESMWriter::writeHNString(const std::string& name, const std::string& data, int size)
|
||||||
{
|
{
|
||||||
assert(data.size() <= size);
|
assert(static_cast<int> (data.size()) <= size);
|
||||||
startSubRecord(name);
|
startSubRecord(name);
|
||||||
writeHString(data);
|
writeHString(data);
|
||||||
|
|
||||||
if (data.size() < size)
|
if (static_cast<int> (data.size()) < size)
|
||||||
{
|
{
|
||||||
for (int i = data.size(); i < size; ++i)
|
for (int i = data.size(); i < size; ++i)
|
||||||
write("\0",1);
|
write("\0",1);
|
||||||
|
|
Loading…
Reference in a new issue