mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
fixed a check
This commit is contained in:
parent
0036a07ce7
commit
0e40ab434a
|
@ -243,7 +243,7 @@ typename CNetBan::CBan<T> *CNetBan::CBanPool<T, HashCount>::Get(int Index) const
|
||||||
template<class T>
|
template<class T>
|
||||||
void CNetBan::MakeBanInfo(const CBan<T> *pBan, char *pBuf, unsigned BuffSize, int Type) const
|
void CNetBan::MakeBanInfo(const CBan<T> *pBan, char *pBuf, unsigned BuffSize, int Type) const
|
||||||
{
|
{
|
||||||
if(pBan == 0)
|
if(pBan == 0 || pBuf == 0)
|
||||||
{
|
{
|
||||||
if(BuffSize > 0)
|
if(BuffSize > 0)
|
||||||
pBuf[0] = 0;
|
pBuf[0] = 0;
|
||||||
|
|
Loading…
Reference in a new issue