Empty-string anim queues are now allowed

This commit is contained in:
2026-02-25 02:54:54 -05:00
parent 4b81a0768a
commit 95cd378dc0
6 changed files with 34 additions and 51 deletions

View File

@@ -1264,7 +1264,6 @@ void World::rollback() {
//
void engine_initialization() {
SourceDB::register_lua_builtins();
AnimQueue::initialize_module();
}
static DrivenEngineInitializerReg eireg(engine_initialization);
@@ -1280,12 +1279,14 @@ void World::get_animation_queues(uint32_t count, const int64_t *ids, uint32_t *l
for (int i = 0; i < int(count); i++) {
Tangible *tan = tangible_get(ids[i]);
if (tan == nullptr) {
wrapper_anim_queues_[i] = AnimQueue::get_encoded_blank_queue();
wrapper_anim_queues_[i] = nullptr;
lengths[i] = 0;
strings[i] = "";
} else {
wrapper_anim_queues_[i] = tan->anim_queue_.get_encoded_queue();
lengths[i] = wrapper_anim_queues_[i]->size();
strings[i] = wrapper_anim_queues_[i]->c_str();
}
lengths[i] = wrapper_anim_queues_[i]->size();
strings[i] = wrapper_anim_queues_[i]->c_str();
}
}