forked from github/server
CID 26256: (NULL_RETURNS)
This commit is contained in:
parent
833a1e70be
commit
0a67d53264
1 changed files with 10 additions and 8 deletions
|
@ -971,6 +971,7 @@ void drain_exp(struct unit *u, int n)
|
||||||
}
|
}
|
||||||
if (sk != NOSKILL) {
|
if (sk != NOSKILL) {
|
||||||
skill *sv = unit_skill(u, sk);
|
skill *sv = unit_skill(u, sk);
|
||||||
|
if (sv) {
|
||||||
while (n > 0) {
|
while (n > 0) {
|
||||||
if (n >= 30 * u->number) {
|
if (n >= 30 * u->number) {
|
||||||
reduce_skill(u, sv, 1);
|
reduce_skill(u, sv, 1);
|
||||||
|
@ -984,6 +985,7 @@ void drain_exp(struct unit *u, int n)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const char *rel_dam(int dam, int hp)
|
const char *rel_dam(int dam, int hp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue