- added a FindSymbol wrapper to PClass so that other code does not need to access the symbol table directly.
- added an isActor utility function to codegen.cpp to simplify a few constructs.
This commit is contained in:
parent
b17ab7a133
commit
6308251084
19 changed files with 49 additions and 38 deletions
|
|
@ -625,7 +625,7 @@ DEFINE_ACTION_FUNCTION(DObject, MSTime)
|
|||
void *DObject::ScriptVar(FName field, PType *type)
|
||||
{
|
||||
auto cls = GetClass();
|
||||
auto sym = dyn_cast<PField>(cls->Symbols.FindSymbol(field, true));
|
||||
auto sym = dyn_cast<PField>(cls->FindSymbol(field, true));
|
||||
if (sym && (sym->Type == type || type == nullptr))
|
||||
{
|
||||
if (!(sym->Flags & VARF_Meta))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue