mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Removed pointer to army from StackInstance
This commit is contained in:
30
lib/CStack.h
30
lib/CStack.h
@@ -109,21 +109,21 @@ public:
|
||||
h & side;
|
||||
h & initialPosition;
|
||||
|
||||
const CArmedInstance * army = (base ? base->armyObj : nullptr);
|
||||
SlotID extSlot = (base ? base->armyObj->findStack(base) : SlotID());
|
||||
|
||||
if(h.saving)
|
||||
{
|
||||
h & army;
|
||||
h & extSlot;
|
||||
}
|
||||
else
|
||||
{
|
||||
h & army;
|
||||
h & extSlot;
|
||||
|
||||
postDeserialize(army, extSlot);
|
||||
}
|
||||
// const CArmedInstance * army = (base ? base->armyObj : nullptr);
|
||||
// SlotID extSlot = (base ? base->armyObj->findStack(base) : SlotID());
|
||||
//
|
||||
// if(h.saving)
|
||||
// {
|
||||
// h & army;
|
||||
// h & extSlot;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// h & army;
|
||||
// h & extSlot;
|
||||
//
|
||||
// postDeserialize(army, extSlot);
|
||||
// }
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user