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. |
||
|---|---|---|
| .. | ||
| df | ||
| modules | ||
| BitArray.h | ||
| ColorText.h | ||
| Console.h | ||
| Core.h | ||
| DFHack.h | ||
| DataDefs.h | ||
| DataFuncs.h | ||
| DataIdentity.h | ||
| Error.h | ||
| Export.h | ||
| Hooks.h | ||
| Internal.h | ||
| LuaTools.h | ||
| LuaWrapper.h | ||
| MemAccess.h | ||
| MiscUtils.h | ||
| Module.h | ||
| ModuleFactory.h | ||
| PluginManager.h | ||
| Pragma.h | ||
| RemoteClient.h | ||
| RemoteServer.h | ||
| RemoteTools.h | ||
| SDL_events.h | ||
| SDL_keyboard.h | ||
| SDL_keysym.h | ||
| TileTypes.h | ||
| Types.h | ||
| VTableInterpose.h | ||
| VersionInfo.h | ||
| VersionInfoFactory.h | ||
| wdirent.h | ||