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:
parent
33a5e9e05f
commit
d1aa55de91
@ -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"]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user