Remove redundant assignment and null ptr check

git-svn-id: https://svn.eduke32.com/eduke32@7062 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-10 19:15:17 +00:00
parent 941aa87bce
commit 6248cc9cee

View file

@ -2375,7 +2375,6 @@ static int32_t C_CountCaseStatements()
g_lineNumber = temp_ScriptLineNumber;
int32_t const lCount=g_numCases;
g_numCases=0;
g_caseScriptPtr = (intptr_t *)(apScript+caseoffset);
g_numCases = 0;
return lCount;
@ -5210,7 +5209,7 @@ repeatcase:
{
if (tw == CON_DEFAULT)
{
if (EDUKE32_PREDICT_FALSE(g_caseScriptPtr && g_caseScriptPtr[0]!=0))
if (EDUKE32_PREDICT_FALSE(g_caseScriptPtr[0] != 0))
{
// duplicate default statement
g_errorCnt++;