mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-07 07:10:04 +02:00
Survive giving Commander's badge to stacks
Used to SEGFAULT
This commit is contained in:
parent
79c85be93f
commit
220e4d2030
File diff suppressed because it is too large
Load Diff
@ -214,6 +214,8 @@ void CArtPlace::clickLeft(tribool down, bool previousState)
|
|||||||
bool CArtPlace::askToAssemble(const CArtifactInstance *art, ArtifactPosition slot,
|
bool CArtPlace::askToAssemble(const CArtifactInstance *art, ArtifactPosition slot,
|
||||||
const CGHeroInstance *hero)
|
const CGHeroInstance *hero)
|
||||||
{
|
{
|
||||||
|
assert(art != nullptr);
|
||||||
|
assert(hero != nullptr);
|
||||||
std::vector<const CArtifact *> assemblyPossibilities = art->assemblyPossibilities(hero);
|
std::vector<const CArtifact *> assemblyPossibilities = art->assemblyPossibilities(hero);
|
||||||
|
|
||||||
// If the artifact can be assembled, display dialog.
|
// If the artifact can be assembled, display dialog.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user