Fixed crash bug in count_quests (quest.c) affecting zlist --Jamdog
This commit is contained in:
@@ -35,6 +35,8 @@ export (QQ's a zone into a tarball)t
|
|||||||
Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist)
|
||||||
(lots of major bugfixes too)
|
(lots of major bugfixes too)
|
||||||
tbaMUD 3.59
|
tbaMUD 3.59
|
||||||
|
[Feb 11 2009] - Jamdog
|
||||||
|
Fixed a crash bug in count_quests (quest.c) affecting zlist (thanks Fsantin)
|
||||||
[Feb 05 2009] - Jamdog
|
[Feb 05 2009] - Jamdog
|
||||||
Added "set <player> name <newname>", which renames a character, including pfile and index entry
|
Added "set <player> name <newname>", which renames a character, including pfile and index entry
|
||||||
[Feb 01 2009] - Jamdog
|
[Feb 01 2009] - Jamdog
|
||||||
|
|||||||
@@ -118,8 +118,11 @@ int count_quests(qst_vnum low, qst_vnum high)
|
|||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
for (i = j = 0; QST_NUM(i) <= high; i++)
|
if (!aquest_table)
|
||||||
if (QST_NUM(i) >= low)
|
return 0;
|
||||||
|
|
||||||
|
for (i = j = 0; i < total_quests; i++)
|
||||||
|
if (QST_NUM(i) >= low && QST_NUM(i) <= high)
|
||||||
j++;
|
j++;
|
||||||
|
|
||||||
return j;
|
return j;
|
||||||
|
|||||||
Reference in New Issue
Block a user