Skip to content

Commit

Permalink
Validator Fix
Browse files Browse the repository at this point in the history
This fixes issue #418 where the validators for a field are not firing in most cases.
  • Loading branch information
greenfire27 committed Jan 30, 2019
1 parent 5527317 commit 28806e6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions engine/source/sim/simObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,6 @@ void SimObject::setDataField(StringTableEntry slotName, const char *array, const

if( (*fld->setDataFn)( this, bufferSecure ) )
Con::setData(fld->type, (void *) (((const char *)this) + fld->offset), array1, 1, &value, fld->table);

onStaticModified( slotName, value );

return;
}

if(fld->validator)
Expand Down

0 comments on commit 28806e6

Please sign in to comment.