@@ -345,7 +345,7 @@ void Player::SetButtons(uint64_t new_buttons)
345345{
346346 /*
347347 DEBUG: Button Presses
348-
348+
349349 for(uint64_t i = 0; i < 64; i++) {
350350 if((new_buttons & (1ULL << i)) != 0) {
351351 PRINTF("%s: %d\n", key_buttons[i].c_str(), i);
@@ -383,7 +383,7 @@ void Player::SetPage(int pg)
383383{
384384 this ->page = pg;
385385 this ->selected = 0 ;
386- this ->menu ->RegeneratePage (this ->page , this ->selected );
386+ this ->menu ->RegeneratePage (this ->GetSlot (). Get (), this -> page , this ->selected );
387387}
388388int Player::GetSelection () { return this ->selected ; }
389389void Player::MoveSelection ()
@@ -396,7 +396,7 @@ void Player::MoveSelection()
396396 if (itemsPerPage == this ->selected )
397397 this ->selected = 0 ;
398398
399- this ->menu ->RegeneratePage (this ->page , this ->selected );
399+ this ->menu ->RegeneratePage (this ->GetSlot (). Get (), this -> page , this ->selected );
400400}
401401
402402void Player::ShowMenu (std::string menuid)
@@ -412,7 +412,7 @@ void Player::ShowMenu(std::string menuid)
412412 this ->page = 1 ;
413413 this ->selected = 0 ;
414414
415- this ->menu ->RegeneratePage (this ->page , this ->selected );
415+ this ->menu ->RegeneratePage (this ->GetSlot (). Get (), this -> page , this ->selected );
416416 this ->RenderMenu ();
417417}
418418
@@ -427,7 +427,7 @@ void Player::RenderMenu()
427427 IGameEvent *pEvent = g_gameEventManager->CreateEvent (" show_survival_respawn_status" , true );
428428 if (pEvent)
429429 {
430- pEvent->SetString (" loc_token" , this ->menu ->GeneratedItems (this ->page ).c_str ());
430+ pEvent->SetString (" loc_token" , this ->menu ->GeneratedItems (this ->GetSlot (). Get (), this -> page ).c_str ());
431431 pEvent->SetUint64 (" duration" , 10 );
432432 pEvent->SetInt (" userid" , this ->GetController ()->GetEntityIndex ().Get () - 1 );
433433
0 commit comments