mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 19:20:38 +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;
|
g_lineNumber = temp_ScriptLineNumber;
|
||||||
|
|
||||||
int32_t const lCount=g_numCases;
|
int32_t const lCount=g_numCases;
|
||||||
g_numCases=0;
|
|
||||||
g_caseScriptPtr = (intptr_t *)(apScript+caseoffset);
|
g_caseScriptPtr = (intptr_t *)(apScript+caseoffset);
|
||||||
g_numCases = 0;
|
g_numCases = 0;
|
||||||
return lCount;
|
return lCount;
|
||||||
|
@ -5210,7 +5209,7 @@ repeatcase:
|
||||||
{
|
{
|
||||||
if (tw == CON_DEFAULT)
|
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
|
// duplicate default statement
|
||||||
g_errorCnt++;
|
g_errorCnt++;
|
||||||
|
|
Loading…
Reference in a new issue