From 0c1c7fe86992a030ed6e72a74b1e16607c4516a2 Mon Sep 17 00:00:00 2001 From: methodus Date: Thu, 3 Jan 2013 02:29:08 +0100 Subject: Fixed stupid comparator bug --- common/tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/tools.cpp b/common/tools.cpp index d46e8c1..a1a5f4b 100644 --- a/common/tools.cpp +++ b/common/tools.cpp @@ -64,7 +64,7 @@ string GetAddressByInterface(string Interface){ } string GetNetworkInterfaceByIndex(int Index, bool skipLoop){ StringVector interfaces = GetNetworkInterfaces(skipLoop); - if(interfaces.size() < 0) + if(interfaces.size() > 0) return interfaces[Index]; else return string(); -- cgit v1.2.3