2019-12-08 20:05 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000974AIAIpublic2008-07-09 04:39
Reporterhoijui 
Assigned ToKloot 
PrioritynormalSeveritytweakReproducibilityalways
StatusresolvedResolutionfixed 
Summary0000974: [patch] CR_DECLARE_STRUCT for FeatureDef
Descriptionso far, FeatureDef uses CR_DECLARE(FeatureDef), even though it is a simple struct with no base, and no virtual functions.
using CR_DECLARE gives me an error (undefined reference to vtable for FeatureDef) when using FeatureDef on the C++ wrapper for the C AI interface. with CR_DECLARE_STRUCT(FeatureDef), this error vanishes. spring compiles and it does not crash when saving a game with this change, plus i don't get the error any more.
TagsNo tags attached.
Attached Files
  • diff file icon FeatureDef.diff (386 bytes) 2008-07-09 00:06 -
    Index: rts/Sim/Features/FeatureDef.h
    ===================================================================
    --- rts/Sim/Features/FeatureDef.h	(revision 6076)
    +++ rts/Sim/Features/FeatureDef.h	(working copy)
    @@ -15,7 +15,7 @@
     
     struct FeatureDef
     {
    -	CR_DECLARE(FeatureDef);
    +	CR_DECLARE_STRUCT(FeatureDef);
     
     	FeatureDef():
     		metal(0), energy(0), maxHealth(0), reclaimTime(0), mass(0),
    
    diff file icon FeatureDef.diff (386 bytes) 2008-07-09 00:06 +

-Relationships
+Relationships

-Notes

~0002397

Kloot (developer)

done
+Notes

-Issue History
Date Modified Username Field Change
2008-07-09 00:05 hoijui New Issue
2008-07-09 00:06 hoijui File Added: FeatureDef.diff
2008-07-09 04:39 Kloot Note Added: 0002397
2008-07-09 04:39 Kloot Status new => resolved
2008-07-09 04:39 Kloot Resolution open => fixed
2008-07-09 04:39 Kloot Assigned To => Kloot
+Issue History