Core/Misc: Fix some static analysis issues
Fix some static analysis issues about: - uninitialized values, most of which are false positives, always initialized before being accessed - unchecked return values - dead code never executed - bad formatting leading to wrong behavior Please ensure EventMap is never used with event id set to 0 or those events will never execute.
This commit is contained in:
1 parent
409f4bffd5
commit
6dcd8c8545
17 files changed
+85
-19
No files matched your search
@@ -45,7 +45,7 @@ class GameObjectModel /*, public Intersectable*/
|
||||
float iScale;
|
||||
VMAP::WorldModel* iModel;
|
||||
|
||||
GameObjectModel() : phasemask(0), iModel(NULL) { }
|
||||
GameObjectModel() : phasemask(0), iInvScale(0), iScale(0), iModel(NULL) { }
|
||||
bool initialize(const GameObject& go, const GameObjectDisplayInfoEntry& info);
|
||||
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user