debug logs and spacing

This commit is contained in:
David Markowitz
2024-05-18 03:52:36 -07:00
parent 387c37505c
commit b3548de7da
2 changed files with 10 additions and 4 deletions

View File

@@ -597,8 +597,11 @@ void PropertyManagementComponent::Load() {
std::ostringstream userModelBehavior;
bool firstAdded = false;
for (const auto& behavior : databaseModel.behaviors) {
if (behavior == LWOOBJID_EMPTY) continue;
for (auto behavior : databaseModel.behaviors) {
if (behavior < 0) {
LOG("Invalid behavior ID: %d, removing behavior reference from model", behavior);
behavior = 0;
}
if (firstAdded) userModelBehavior << ",";
userModelBehavior << behavior;
firstAdded = true;