Skip to content

Commit

Permalink
[lang][core] Major bug fix in the dynamic skill creator from the @Def…
Browse files Browse the repository at this point in the history
…aultSkill annotation.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Feb 28, 2021
1 parent 8c5dcf9 commit 49bcc0d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -230,7 +230,7 @@ private AtomicSkillReference createSkillDynamically(Class<? extends Capacity> ca
final Constructor<? extends Skill> cons = type.getConstructor();
cons.setAccessible(true);
final Skill skillInstance = cons.newInstance();
$attachOwner(skill);
$attachOwner(skillInstance);
return new AtomicSkillReference(skillInstance);
} catch (Throwable exception) {
throw new UnimplementedCapacityException(capacity, getID(), exception);
Expand Down

0 comments on commit 49bcc0d

Please sign in to comment.