fix segfault for real
This commit is contained in:
@@ -3,13 +3,27 @@
|
||||
#include "../SpriteUtils.h"
|
||||
#include <vector>
|
||||
|
||||
const AssetPair ship = {
|
||||
{R"( | | | )", R"( )_) )_) )_) )",
|
||||
R"( )___))___))___)\ )", R"( )____)____)_____)\\ )",
|
||||
R"(_____|____|____|____\\\__)", R"(\ /????)"},
|
||||
{R"( y y y )", R"()", R"( w )",
|
||||
R"( ww )", R"(yyyyyyyyyyyyyyyyyyyywwwyy)",
|
||||
R"(y y )"}};
|
||||
inline const AssetPair &getShip() {
|
||||
static const AssetPair ship = {
|
||||
{
|
||||
R"( | | | )",
|
||||
R"( )_) )_) )_) )",
|
||||
R"( )___))___))___)\ )",
|
||||
R"( )____)____)_____)\\ )",
|
||||
R"(_____|____|____|____\\\__)",
|
||||
R"(\ /????)"},
|
||||
{
|
||||
R"( y y y )",
|
||||
R"()",
|
||||
R"( w )",
|
||||
R"( ww )",
|
||||
R"(yyyyyyyyyyyyyyyyyyyywwwyy)",
|
||||
R"(y y )"}};
|
||||
return ship;
|
||||
}
|
||||
|
||||
inline const std::vector<AssetPair> shipAssets =
|
||||
createBidirectionalAssets({ship});
|
||||
inline const std::vector<AssetPair> &getShipAssets() {
|
||||
static const std::vector<AssetPair> shipAssets =
|
||||
createBidirectionalAssets({getShip()});
|
||||
return shipAssets;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user