dongresource 23ab908366 Refuse to start if there are invalid NPC types in the JSONs
This fixes an issue where there server would start up fine even if NPC
types from a later build were found in the gruntwork file. Because of
the semantics of the C++ array indexing operator, the index into NPCData
in loadGruntworkPost() would silently create extra entries in the
nlohmann::json array, which would break future NPC type limit checks and
subsequently crash the server at the next invocation of /summonW, and
likely other places.

We fix this by refusing to start the server if any invalid NPC types are
found, because simply skipping them in the gruntwork file would silently
omit them from further writes to the gruntwork file, which would be
undesirable data loss.
2023-06-22 02:43:26 +02:00
..
2022-11-15 02:30:20 +01:00
2021-04-07 03:03:43 +02:00
2021-09-19 04:55:10 +02:00
2021-04-29 19:20:53 -05:00
2022-07-24 21:36:03 +02:00
2021-05-06 12:17:34 -04:00
2021-05-07 21:29:18 +02:00