Fix an issue when running map-server-generator in opt mode (#7378)

This commit is contained in:
Vincent Stumpf
2022-11-04 21:00:58 -07:00
committed by GitHub
parent 9c0d574787
commit bf2b62bc9c

View File

@@ -3708,6 +3708,8 @@ struct npc_data *npc_create_npc(int16 m, int16 x, int16 y){
struct npc_data *nd = nullptr;
CREATE(nd, struct npc_data, 1);
new (nd) npc_data();
nd->bl.id = npc_get_new_npc_id();
nd->bl.prev = nd->bl.next = nullptr;
nd->bl.m = m;