mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +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,
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user