浏览代码

spell description, not spell roll

Laserlicht 1 年之前
父节点
当前提交
5bb29732d0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/windows/CCastleInterface.cpp

+ 1 - 1
client/windows/CCastleInterface.cpp

@@ -2053,7 +2053,7 @@ void CMageGuildScreen::Scroll::clickPressed(const Point & cursorPosition)
 		cost[EGameResID::GEMS] = (level + 1) * 2;
 		cost[EGameResID::GEMS] = (level + 1) * 2;
 
 
 		std::vector<std::shared_ptr<CComponent>> resComps;
 		std::vector<std::shared_ptr<CComponent>> resComps;
-		resComps.push_back(std::make_shared<CComponent>(ComponentType::SPELL_SCROLL, town->spells[level].at(town->spellsAtLevel(level, false))));
+		resComps.push_back(std::make_shared<CComponent>(ComponentType::SPELL, town->spells[level].at(town->spellsAtLevel(level, false))));
 		resComps.back()->newLine = true;
 		resComps.back()->newLine = true;
 		for(TResources::nziterator i(cost); i.valid(); i++)
 		for(TResources::nziterator i(cost); i.valid(); i++)
 		{
 		{