From 852f5a1dfc8ce67bf645fd85a7964b80d8dc79b2 Mon Sep 17 00:00:00 2001 From: korenkonder Date: Sat, 29 Jul 2023 10:28:01 +0300 Subject: [PATCH] Fix PARTS_DISP command --- src/ReDIVA/pv_game/pv_game_pv_data.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ReDIVA/pv_game/pv_game_pv_data.cpp b/src/ReDIVA/pv_game/pv_game_pv_data.cpp index b90cec03..c0a4ccdf 100644 --- a/src/ReDIVA/pv_game/pv_game_pv_data.cpp +++ b/src/ReDIVA/pv_game/pv_game_pv_data.cpp @@ -1556,11 +1556,11 @@ bool pv_game_pv_data::dsc_ctrl(float_t delta_time, int64_t curr_time, playdata = &this->playdata[chara_id]; rob_chr = playdata->rob_chr; - int32_t id = (int32_t)data[0]; - int32_t enable = (int32_t)data[1]; + int32_t id = (int32_t)data[1]; + int32_t disp = (int32_t)data[2]; if (rob_chr) - rob_chr->set_parts_disp((item_id)id, enable == 1); + rob_chr->set_parts_disp((item_id)id, disp == 1); } break; case DSC_FT_TARGET_FLYING_TIME: { /*float_t target_flying_time = (float_t)(int32_t)data[0] * 0.001f;