summaryrefslogtreecommitdiff
path: root/src/mapsector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapsector.cpp')
-rw-r--r--src/mapsector.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mapsector.cpp b/src/mapsector.cpp
index fa1bb68d0..1fd668793 100644
--- a/src/mapsector.cpp
+++ b/src/mapsector.cpp
@@ -570,10 +570,15 @@ ServerMapSector* ServerMapSector::deSerialize(
if(n != NULL)
{
- dstream<<"deSerializing existent sectors not supported "
+ dstream<<"WARNING: deSerializing existent sectors not supported "
"at the moment, because code hasn't been tested."
<<std::endl;
- assert(0);
+
+ //assert(0);
+ MapSector *sector = n->getValue();
+ assert(sector->getId() == MAPSECTOR_SERVER);
+ return (ServerMapSector*)sector;
+
// NOTE: At least hm_split mismatch would have to be checked
//sector = n->getValue();