mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09: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 );
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue