瀏覽代碼

Survive giving Commander's badge to stacks

Used to SEGFAULT
Vadim Markovtsev 9 年之前
父節點
當前提交
220e4d2030
共有 2 個文件被更改,包括 149 次插入147 次删除
  1. 147 147
      client/CPlayerInterface.cpp
  2. 2 0
      client/widgets/CArtifactHolder.cpp

File diff suppressed because it is too large
+ 147 - 147
client/CPlayerInterface.cpp


+ 2 - 0
client/widgets/CArtifactHolder.cpp

@@ -214,6 +214,8 @@ void CArtPlace::clickLeft(tribool down, bool previousState)
 bool CArtPlace::askToAssemble(const CArtifactInstance *art, ArtifactPosition slot,
                               const CGHeroInstance *hero)
 {
+	assert(art != nullptr);
+	assert(hero != nullptr);
 	std::vector<const CArtifact *> assemblyPossibilities = art->assemblyPossibilities(hero);
 
 	// If the artifact can be assembled, display dialog.

Some files were not shown because too many files changed in this diff