mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
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:
parent
941aa87bce
commit
6248cc9cee
1 changed files with 1 additions and 2 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue