mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
Fixed consistency of checks
This commit is contained in:
parent
4fe9c7d8c8
commit
2b20abff02
1 changed files with 1 additions and 1 deletions
|
@ -2415,7 +2415,7 @@ void ZCCCompiler::CompileFunction(ZCC_StructWork *c, ZCC_FuncDeclarator *f, bool
|
|||
Error(f, "Attempt to change scope for virtual function %s", FName(f->Name).GetChars());
|
||||
}
|
||||
// you can't change const qualifier for a virtual method
|
||||
if (oldfunc->FuncConst != (varflags & VARF_ReadOnly))
|
||||
if (oldfunc->FuncConst != sym->Variants[0].Implementation->FuncConst)
|
||||
{
|
||||
Error(f, "Attempt to change const qualifier for virtual function %s", FName(f->Name).GetChars());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue