Skip to content

Commit

Permalink
pak: saveName() needs to call name(), in case it was overridden.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeUsher committed Feb 17, 2025
1 parent e48b208 commit 54c898f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mia/pak/pak.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ struct Pak {
virtual ~Pak() = default;
virtual auto type() -> string { return pak->attribute("type"); }
virtual auto name() -> string { return pak->attribute("name"); }
virtual auto saveName() -> string { return pak->attribute("name"); }
virtual auto saveName() -> string { return name(); }
virtual auto extensions() -> vector<string> { return {}; }
virtual auto load(string location = {}) -> LoadResult { return successful; }
virtual auto loadMultiple(vector<string> location = {}) -> bool { return true; }
Expand Down

0 comments on commit 54c898f

Please sign in to comment.