1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

change town events to vector + use getDefaultAllowed for spells

This commit is contained in:
godric3
2024-07-16 21:16:26 +02:00
parent c212b1bf36
commit fa3fef8a0f
5 changed files with 18 additions and 30 deletions

View File

@@ -561,7 +561,7 @@ struct DLL_LINKAGE UpdateMapEvents : public CPackForClient
struct DLL_LINKAGE UpdateCastleEvents : public CPackForClient
{
ObjectInstanceID town;
std::list<CCastleEvent> events;
std::vector<CCastleEvent> events;
void applyGs(CGameState * gs) const;
void visitTyped(ICPackVisitor & visitor) override;