forked from github/server
noch so ein assert
This commit is contained in:
parent
3fe43b2a40
commit
aad9405373
|
@ -2076,7 +2076,7 @@ writegame(char *path, char quiet)
|
||||||
#else
|
#else
|
||||||
for (i=0;i!=u->skill_size;++i) {
|
for (i=0;i!=u->skill_size;++i) {
|
||||||
skill * sv = u->skills+i;
|
skill * sv = u->skills+i;
|
||||||
assert(sv->level>=0 && sv->weeks>=0 && sv->weeks<=sv->level*2);
|
assert(sv->level>=0 && sv->weeks>=0 && sv->weeks<=sv->level*2+1);
|
||||||
if (sv->level>0) {
|
if (sv->level>0) {
|
||||||
wi(F, sv->id);
|
wi(F, sv->id);
|
||||||
wi(F, sv->level);
|
wi(F, sv->level);
|
||||||
|
|
Loading…
Reference in New Issue