1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-23 21:29:13 +02:00

Fix rewards not rerolling correctly on reset due to cached variables

This commit is contained in:
Ivan Savenko 2024-08-22 16:38:53 +00:00
parent 33a5e9e05f
commit d1aa55de91

View File

@ -338,6 +338,7 @@ void Rewardable::Info::configureRewards(
void Rewardable::Info::configureObject(Rewardable::Configuration & object, CRandomGenerator & rng, IGameCallback * cb) const
{
object.info.clear();
object.variables.values.clear();
configureVariables(object, rng, cb, parameters["variables"]);