mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Don't hardcode 400 in editorclass::save()
That way, if the size of `level` changes, this code won't end up being wrong.
This commit is contained in:
@@ -2124,7 +2124,7 @@ bool editorclass::save(std::string& _path)
|
||||
data->LinkEndChild( msg );
|
||||
|
||||
msg = doc.NewElement( "levelMetaData" );
|
||||
for(int i = 0; i < 400; i++)
|
||||
for(size_t i = 0; i < SDL_arraysize(level); i++)
|
||||
{
|
||||
tinyxml2::XMLElement *edlevelclassElement = doc.NewElement( "edLevelClass" );
|
||||
edlevelclassElement->SetAttribute( "tileset", level[i].tileset);
|
||||
|
||||
Reference in New Issue
Block a user