mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-30 20:53:45 +01:00
Define and use limit constants for Irrlicht fixed-width types
This commit is contained in:
@@ -50,7 +50,7 @@ void StaticObjectList::serialize(std::ostream &os)
|
||||
size_t count = m_stored.size() + m_active.size();
|
||||
// Make sure it fits into u16, else it would get truncated and cause e.g.
|
||||
// issue #2610 (Invalid block data in database: unsupported NameIdMapping version).
|
||||
if (count > (u16)-1) {
|
||||
if (count > U16_MAX) {
|
||||
errorstream << "StaticObjectList::serialize(): "
|
||||
<< "too many objects (" << count << ") in list, "
|
||||
<< "not writing them to disk." << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user