When done from plugins, it doesn't correctly initialize the vtable because of some weird things MSVC does, so the only safe way is to use df::allocate<df::foo>(). For consistency, it is also enforced for code in the main library. It reveals the issue in the digging invaders plugin, first found by warmist. This change is linked to a modification in df-structures codegen. |
||
|---|---|---|
| .. | ||
| Buildings.cpp | ||
| Burrows.cpp | ||
| Constructions.cpp | ||
| Engravings.cpp | ||
| EventManager.cpp | ||
| Graphic.cpp | ||
| Gui.cpp | ||
| Items.cpp | ||
| Job.cpp | ||
| MapCache.cpp | ||
| Maps.cpp | ||
| Materials.cpp | ||
| Notes.cpp | ||
| Once.cpp | ||
| Random.cpp | ||
| Screen.cpp | ||
| Translation.cpp | ||
| Units.cpp | ||
| Vermin.cpp | ||
| Windows.cpp | ||
| World.cpp | ||
| kitchen.cpp | ||