1
0
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:
Ivan Savenko
2015-12-05 01:39:14 +02:00
parent faa7cbff18
commit 8a3feb1e48

View File

@@ -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);
}
};