소스 검색

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

Vincent Stumpf 2 년 전
부모
커밋
bf2b62bc9c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/map/npc.cpp

+ 2 - 0
src/map/npc.cpp

@@ -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;