Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Bug #852824 ยป 0001-rscompat-modify-copy-of-effect-not-original.patch

Sveinung Kvilhaugsvik, 2019-12-16 08:18 PM

View differences:

server/rscompat.c
{
if (universal_is_mentioned_by_requirements(&peffect->reqs, &original)) {
/* Copy the old effect. */
effect_copy(peffect);
struct effect *peffect_copy = effect_copy(peffect);
/* Replace the original requirement with the separated requirement. */
return universal_replace_in_req_vec(&peffect->reqs,
return universal_replace_in_req_vec(&peffect_copy->reqs,
&original, &separated);
}
    (1-1/1)