From e0d7af86e88597917edb08e416e64a1bb8087c1a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 17 Mar 2020 13:21:03 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 466f0ef..496d540 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2461,9 +2461,9 @@ void Human::RandSkin() int rand_idx = rand() % ids.size(); int skin_id = ids[rand_idx]; if (skin_id == 2) { - skin_id = 13001 + rand(6); + skin_id = 13001 + (rand() % 6); } else if (skin_id == 3) { - skin_id = 15001 + rand(6); + skin_id = 15001 + (rand() % 6); } Skin& skin = skins[i]; skin.skin_id = ids[rand_idx];