mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
[Refactoring] use virtual method for object specific actions when new map object is created
* --TODO * fixes CID 1366291, CID 1366297
This commit is contained in:
@@ -189,6 +189,8 @@ public:
|
||||
void pick( const CGHeroInstance * h ) const;
|
||||
void initObj(CRandomGenerator & rand) override;
|
||||
|
||||
void afterAddToMap(CMap * map) override;
|
||||
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & static_cast<CArmedInstance&>(*this);
|
||||
|
||||
Reference in New Issue
Block a user