فهرست منبع

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

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 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.

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است