From 1e35185e6000aee0574ca55cf4c7a0317a57943c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 7 Sep 2022 11:21:09 +0800 Subject: [PATCH] 1 --- server/gameserver/car.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/gameserver/car.cc b/server/gameserver/car.cc index 9cc9f108..ead28f77 100644 --- a/server/gameserver/car.cc +++ b/server/gameserver/car.cc @@ -57,8 +57,8 @@ void Car::Initialize() ( App::Instance()->AllocTempHeroUniId(), hero_meta_, - App::Instance()->AllocTempWeaponUniId(), - GetCurrWeapon()->meta, + GetCurrWeapon() ? App::Instance()->AllocTempWeaponUniId() : 0, + GetCurrWeapon() ? GetCurrWeapon()->meta : 0, 0, nullptr );