OSDN Git Service

[Refactor] #1372 AngbandWorld の乱数に関するフィールド変数をAngbandSystem へ移した
[hengbandforosx/hengbandosx.git] / src / core / game-play.cpp
index d6dbd9e..6294706 100644 (file)
@@ -190,8 +190,9 @@ static void init_world_floor_info(PlayerType *player_ptr)
     floor_ptr->inside_arena = false;
     AngbandSystem::get_instance().set_phase_out(false);
     write_level = true;
-    w_ptr->seed_flavor = randint0(0x10000000);
-    w_ptr->seed_town = randint0(0x10000000);
+    auto &system = AngbandSystem::get_instance();
+    system.seed_flavor = randint0(0x10000000);
+    system.seed_town = randint0(0x10000000);
     player_birth(player_ptr);
     counts_write(player_ptr, 2, 0);
     player_ptr->count = 0;