This website requires JavaScript.
Explore
Help
Sign In
MetzNet
/
dfhack
Watch
3
Star
0
Fork
You've already forked dfhack
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
294fe0b30c
dfhack
/
library
/
include
/
df
/
custom
/
viewscreen.methods.inc
2 lines
31 B
PHTML
Raw
Normal View
History
Unescape
Escape
Make using new for allocating DF objects with vtables a compile-time error. 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.
2014-04-30 11:28:02 -06:00
friend struct df::interfacest;