Skip to content

Commit

Permalink
Fix compile error with FRAMEWORK_EDITOR enable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nottinghster authored Jan 27, 2023
1 parent d1ca4e4 commit b8ab646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/thingtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ void ThingType::exportImage(const std::string& fileName)
if (m_spritesIndex.empty())
throw Exception("cannot export thingtype without sprites");

const auto & = std::make_shared<Image>(Size(SPRITE_SIZE * m_size.width() * m_layers * m_numPatternX, SPRITE_SIZE * m_size.height() * m_animationPhases * m_numPatternY * m_numPatternZ));
const auto& image = std::make_shared<Image>(Size(SPRITE_SIZE * m_size.width() * m_layers * m_numPatternX, SPRITE_SIZE * m_size.height() * m_animationPhases * m_numPatternY * m_numPatternZ));
for (int z = 0; z < m_numPatternZ; ++z) {
for (int y = 0; y < m_numPatternY; ++y) {
for (int x = 0; x < m_numPatternX; ++x) {
Expand Down

0 comments on commit b8ab646

Please sign in to comment.