summarylogtreecommitdiffstats
path: root/blockattack-2.1.0-hotfix.patch
blob: 3decf5885948582431ab498f1a527a217e60b526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 7025bd6c00f76c6667abb023b27081243f025ad1 Mon Sep 17 00:00:00 2001
From: sago007 <poul@poulsander.com>
Date: Sat, 1 Apr 2017 20:27:57 +0200
Subject: [PATCH] Hotfix for Issue #14

---
 source/code/common.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/code/common.cpp b/source/code/common.cpp
index e4cf830..882aae6 100644
--- a/source/code/common.cpp
+++ b/source/code/common.cpp
@@ -49,7 +49,7 @@ double str2double(const string& str2parse) {
 	try {
 		return std::stod(str2parse);
 	}
-	catch (std::ios_base::failure& f) {
+	catch (...) {
 		return 0.0;
 	}
 }
@@ -78,7 +78,7 @@ int str2int(const string& str2parse) {
 	try {
 		return std::stoi(str2parse);
 	}
-	catch (std::ios_base::failure& f) {
+	catch (...) {
 		return 0;
 	}
 }