Skip to content

Commit 768efad

Browse files
committed
[CID 137303] Fix mixed enum warning
1 parent 2ea9905 commit 768efad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/cmdsf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ Parse_stat MCExport::parse(MCScriptPoint &sp)
571571
// MW-2006-05-04: Bug 3506 - crash in specific case due to not checking result of sp.lookup
572572
// MW-2007-09-11: [[ Bug 5242 ]] - the alternate of this if used to fail if te == NULL, this
573573
// can happen though if we are looking at a variable chunk.
574-
if (sp.next(t_type) == PS_NORMAL && sp.lookup(SP_FACTOR, t_te) == PS_NORMAL && t_te -> type == TT_CHUNK && t_te -> which == CT_STACK)
574+
if (sp.next(t_type) == PS_NORMAL && sp.lookup(SP_FACTOR, t_te) == PS_NORMAL && t_te -> type == TT_CHUNK && Chunk_term(t_te -> which) == CT_STACK)
575575
{
576576
if (sp.parseexp(False, True, &exsstack) != PS_NORMAL)
577577
{

0 commit comments

Comments
 (0)