fix segfault for real

This commit is contained in:
2025-07-08 11:08:38 -04:00
parent 9c631d3d9a
commit cda06a5169
9 changed files with 176 additions and 139 deletions

View File

@@ -8,7 +8,8 @@ struct CastleAsset {
std::vector<std::string> mask;
};
inline CastleAsset castleAsset = {
inline const CastleAsset& getCastleAsset() {
static const CastleAsset castleAsset = {
{
R"( T~~)",
R"( |)",
@@ -37,4 +38,6 @@ inline CastleAsset castleAsset = {
R"( yy yy)",
R"( y y y y)",
R"( yyyyyyy)"}
};
};
return castleAsset;
}