mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 01:32:39 +00:00
Initialize all members and replaced NULL with 0.
This commit is contained in:
parent
879dd99349
commit
c7089e2162
@ -60,7 +60,13 @@ private:
|
||||
const unit_map& units_;
|
||||
|
||||
struct terrain_filter_cache {
|
||||
terrain_filter_cache() : parsed_terrain(NULL), adjacent_matches(NULL) {}
|
||||
terrain_filter_cache() :
|
||||
parsed_terrain(0),
|
||||
adjacent_matches(0),
|
||||
adjacent_match_cache()
|
||||
{
|
||||
}
|
||||
|
||||
~terrain_filter_cache() {
|
||||
delete parsed_terrain;
|
||||
delete adjacent_matches;
|
||||
|
Loading…
x
Reference in New Issue
Block a user