diff options
author | Wushin <pasekei@gmail.com> | 2015-06-19 21:52:45 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-06-19 21:52:45 -0500 |
commit | 9d3e5757b1598028be49d4565712002593ae77ed (patch) | |
tree | 1301c0a2682eb5367fbc98cb023419fd70c19219 /src/map | |
parent | 182e82a79c0455b6e6734b1cb6d83cfcd7f28d61 (diff) | |
parent | c96af96e4cfada382080aaa6ffa735229f9b68c7 (diff) | |
download | tmwa-9d3e5757b1598028be49d4565712002593ae77ed.tar.gz tmwa-9d3e5757b1598028be49d4565712002593ae77ed.tar.bz2 tmwa-9d3e5757b1598028be49d4565712002593ae77ed.tar.xz tmwa-9d3e5757b1598028be49d4565712002593ae77ed.zip |
Merge pull request #114 from Rawng/remote_mapserver
Don't segfault when inserting remote maps into DB.
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp index 7d219a9..d40977f 100644 --- a/src/map/map.cpp +++ b/src/map/map.cpp @@ -1237,7 +1237,8 @@ int map_setipport(MapName name, IP4Address ip, int port) mdos->gat = nullptr; mdos->ip = ip; mdos->port = port; - maps_db.put(mdos->name_, std::move(mdos)); + MapName mName = mdos->name_; + maps_db.put(mName, std::move(mdos)); } } OMATCH_END (); |