diff --git a/main.cpp b/main.cpp index 9d818a8..bb63bfc 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,5 @@ #include "main.h" #include "cwmods/cwmods.h" -#include "cwmods/common/LongVector3.h" #include #include #include @@ -59,8 +58,12 @@ void InitHomeMap(){ std::string x = elements.at(1); std::string y = elements.at(2); std::string z = elements.at(3); - std::vector coords {std::stoll(x), std::stoll(y), std::stoll(z)}; - home_map[name] = coords; + try { + std::vector coords {std::stoll(x), std::stoll(y), std::stoll(z)}; + home_map[name] = coords; + } catch ( ... ) { + continue; + } } } } @@ -393,4 +396,4 @@ EXPORT HandleP2PRequest(long long steamID) { EXPORT void ModInitialize() { InitHomeMap(); -} \ No newline at end of file +}