Skip to content

Commit

Permalink
towners: add BUGFIX for ProcessTowners
Browse files Browse the repository at this point in the history
Only active towners should be processed in ProcessTowners, not
the entire array. For reference logic see GetActiveTowner.
  • Loading branch information
mewmew authored and AJenbo committed Mar 9, 2021
1 parent 343896a commit 0d3c3d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/towners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ void ProcessTowners()
{
int i, ao;

// BUGFIX: should be `i < numtowners`, was `i < NUM_TOWNERS`.
for (i = 0; i < NUM_TOWNERS; i++) {
switch (towner[i]._ttype) {
case TOWN_SMITH:
Expand Down

0 comments on commit 0d3c3d1

Please sign in to comment.