mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Fix compilation with gcc in debug mode
It needs explicit template instantiations for src/engine/server/server.cpp, for the Ban function.
This commit is contained in:
parent
ebeb289fef
commit
b8b6808cd5
|
@ -601,3 +601,7 @@ void CNetBan::ConBansSave(IConsole::IResult *pResult, void *pUser)
|
||||||
str_format(aBuf, sizeof(aBuf), "saved banlist to '%s'", pResult->GetString(0));
|
str_format(aBuf, sizeof(aBuf), "saved banlist to '%s'", pResult->GetString(0));
|
||||||
pThis->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "net_ban", aBuf);
|
pThis->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "net_ban", aBuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// explicitly instantiate template for src/engine/server/server.cpp
|
||||||
|
template void CNetBan::MakeBanInfo<CNetRange>(const CBan<CNetRange> *pBan, char *pBuf, unsigned BufferSize, int Type) const;
|
||||||
|
template void CNetBan::MakeBanInfo<NETADDR>(const CBan<NETADDR> *pBan, char *pBuf, unsigned BufferSize, int Type) const;
|
||||||
|
|
Loading…
Reference in a new issue