mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
MSVC build fix
git-svn-id: https://svn.eduke32.com/eduke32@4530 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9eb8efa442
commit
7dae4a8e96
1 changed files with 6 additions and 2 deletions
|
@ -1619,7 +1619,10 @@ static void sv_postanimateptr()
|
|||
static void sv_prequote()
|
||||
{
|
||||
if (!savegame_quotes)
|
||||
savegame_quotes = (char (*)[MAXQUOTELEN])Xcalloc(MAXQUOTES, MAXQUOTELEN);
|
||||
{
|
||||
void *ptr = Xcalloc(MAXQUOTES, MAXQUOTELEN);
|
||||
savegame_quotes = (char(*)[MAXQUOTELEN])ptr;
|
||||
}
|
||||
}
|
||||
static void sv_quotesave()
|
||||
{
|
||||
|
@ -1647,7 +1650,8 @@ static void sv_quoteload()
|
|||
static void sv_prequoteredef()
|
||||
{
|
||||
// "+1" needed for dfwrite which doesn't handle the src==NULL && cnt==0 case
|
||||
savegame_quoteredefs = (char (*)[MAXQUOTELEN])Xcalloc(g_numQuoteRedefinitions+1, MAXQUOTELEN);
|
||||
void *ptr = Xcalloc(g_numQuoteRedefinitions+1, MAXQUOTELEN);
|
||||
savegame_quoteredefs = (char(*)[MAXQUOTELEN])ptr;
|
||||
}
|
||||
static void sv_quoteredefsave()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue