From 9176226c4f6c91e4649e384dc8fe16c9f9e1260e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 16 Aug 2024 17:27:02 +0800 Subject: [PATCH] 1 --- server/marketserver/mt/Currency.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/marketserver/mt/Currency.go b/server/marketserver/mt/Currency.go index b5d15fb8..3bff6820 100644 --- a/server/marketserver/mt/Currency.go +++ b/server/marketserver/mt/Currency.go @@ -118,6 +118,11 @@ func (this *CurrencyTable) PostInit1() { } return true }) + contractMeta := Table.Contract.GetByNetIdName(netId, currencyMeta.GetCurrencyName()) + if contractMeta == nil { + panic(fmt.Sprintf("currency contract not found")) + } + currencyMeta.contract = contractMeta return true }) }