Page 1 of 1

SVN Wild Growth Description bug

Posted: Tue Apr 10, 2012 6:43 pm
by edge2054
Looking over the latest commit I believe the Wild Growth description will throw an error.

The formatting on the string is still calling (regen, dur) even though regen no longer exists. It's also calling regen first so it will look for regen for the string.

From the git diff

Code: Select all

+               Any regeneration effect active on you will have its duration increased by +%d turns.]]):
                format(regen, dur)
I haven't booted up the game (I'm in the middle of a patch anyway and don't feel like committing it to pull) but I predict this will throw an error attempt to index regen a nil value.

Re: SVN Wild Growth Description bug

Posted: Tue Apr 10, 2012 6:56 pm
by PureQuestion
Yeah this seems fairly certain; it's pulling a non existence variable, and even if the variable was still there it would be pulling the wrong one, so...