mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Prefer to pass CGameState as reference instead of pointer
This commit is contained in:
@@ -144,7 +144,7 @@ public:
|
||||
CGObjectInstance * getObject(ObjectInstanceID obj);
|
||||
const CGObjectInstance * getObject(ObjectInstanceID obj) const;
|
||||
|
||||
void attachToBonusSystem(CGameState * gs);
|
||||
void attachToBonusSystem(CGameState & gs);
|
||||
|
||||
template<typename ObjectType = CGObjectInstance>
|
||||
std::vector<const ObjectType *> getObjects() const
|
||||
|
||||
Reference in New Issue
Block a user