Author: ilor
Date: Sun Jul 13 20:47:58 2008
New Revision: 28019
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28019&view=rev
Log:
make gamemap polymorphic
Modified:
trunk/src/map.cpp
trunk/src/map.hpp
Modified: trunk/src/map.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/map.cpp?rev=28019&r1=28018&r2=28019&view=diff
==============================================================================
--- trunk/src/map.cpp (original)
+++ trunk/src/map.cpp Sun Jul 13 20:47:58 2008
@@ -323,6 +323,10 @@
create_terrain_maps(terrains,terrainList_,tcodeToTerrain_);
read(data);
+}
+
+gamemap::~gamemap()
+{
}
//! Reads a map
Modified: trunk/src/map.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/map.hpp?rev=28019&r1=28018&r2=28019&view=diff
==============================================================================
--- trunk/src/map.hpp (original)
+++ trunk/src/map.hpp Sun Jul 13 20:47:58 2008
@@ -165,6 +165,7 @@
//! Starting locations are represented by numbers,
//! and will be of type keep.
gamemap(const config& terrain_cfg, const std::string& data);
//throw(incorrect_format_exception)
+ virtual ~gamemap();
void read(const std::string& data);
std::string write() const;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits