Fix for command #traindisc not saving disciplines when not used on self

This commit is contained in:
Uleat 2016-07-08 15:33:36 -04:00
parent 542d454fe0
commit b44da7c13a

View File

@ -7839,7 +7839,7 @@ void command_traindisc(Client *c, const Seperator *sep)
break; //continue the 1st loop
} else if(t->GetPP().disciplines.values[r] == 0) {
t->GetPP().disciplines.values[r] = curspell;
database.SaveCharacterDisc(c->CharacterID(), r, curspell);
database.SaveCharacterDisc(t->CharacterID(), r, curspell);
t->SendDisciplineUpdate();
t->Message(0, "You have learned a new discipline!");
count++; //success counter