• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision934f5f843aefeb920d487624cf8a38936da4581f (tree)
Time2019-02-04 23:23:57
AuthorDeskull <deskull@user...>
CommiterDeskull

Log Message

[Fix] #38921 施設の種族制限処理が起こしていたエンバグに対応。 / Fix a bug of race limitation using building.

Change Summary

Incremental Difference

--- a/src/init1.c
+++ b/src/init1.c
@@ -3860,17 +3860,11 @@ static errr parse_line_building(char *buf)
38603860 {
38613861 int n;
38623862 n = tokenize(s + 2, MAX_RACES, zz, 0);
3863- if (n <= MAX_RACES)
3863+ for (i = 0; i < MAX_RACES; i++)
38643864 {
3865- for (i = 0; i < MAX_RACES; i++)
3866- {
3867- building[index].member_race[i] = ((i > n) ? (RACE_IDX)atoi(zz[i]) : 1);
3868- }
3869-
3870- break;
3865+ building[index].member_race[i] = ((i < n) ? (RACE_IDX)atoi(zz[i]) : 1);
38713866 }
3872-
3873- return (PARSE_ERROR_TOO_FEW_ARGUMENTS);
3867+ break;
38743868 }
38753869
38763870 /* Building Realms */
Show on old repository browser