vttred / ose

Old-School Essentials – Foundry VTT Edition
https://ose.vtt.red
GNU General Public License v3.0
98 stars 57 forks source link

Fix: Error on new actor creation #532

Closed NekohimeMusou closed 2 months ago

NekohimeMusou commented 3 months ago

Creating a new "character" Actor throws a data preparation error because one or more properties aren't being set before they're accessed. It seems like it's because undefined data is being passed into the OseDataModelCharacterScores constructor, since this little hack is enough to fix the error. Harmless as far as I can tell, but those red console messages bug me XD