mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 10:29:45 +01: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:
parent
f02dcbfdad
commit
19a8352775
1 changed files with 1 additions and 1 deletions
|
@ -2124,7 +2124,7 @@ bool editorclass::save(std::string& _path)
|
||||||
data->LinkEndChild( msg );
|
data->LinkEndChild( msg );
|
||||||
|
|
||||||
msg = doc.NewElement( "levelMetaData" );
|
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" );
|
tinyxml2::XMLElement *edlevelclassElement = doc.NewElement( "edLevelClass" );
|
||||||
edlevelclassElement->SetAttribute( "tileset", level[i].tileset);
|
edlevelclassElement->SetAttribute( "tileset", level[i].tileset);
|
||||||
|
|
Loading…
Reference in a new issue