mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Added assert to hopefully catch invalid GiveBonus package at some point
This commit is contained in:
@@ -366,6 +366,7 @@ struct GiveBonus : public CPackForClient //115
|
||||
template <typename Handler> void serialize(Handler &h, const int version)
|
||||
{
|
||||
h & bonus & id & bdescr & who;
|
||||
assert( id != -1);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user