mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-14 10:50:13 +01:00
Fix crash when one of the lobby keys which was supposed to be an int was not an int.
This commit is contained in:
parent
5ed9a7aa77
commit
75dd582dec
1 changed files with 14 additions and 9 deletions
|
@ -1152,16 +1152,21 @@ void RunCallbacks()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
int compare_to = stoi(value->second, 0, 0);
|
try {
|
||||||
PRINT_DEBUG("Compare Values %i %i\n", compare_to, f.value_int);
|
int compare_to = std::stoi(value->second, 0, 0);
|
||||||
if (f.eComparisonType == k_ELobbyComparisonEqual) {
|
PRINT_DEBUG("Compare Values %i %i\n", compare_to, f.value_int);
|
||||||
if (compare_to == f.value_int) {
|
if (f.eComparisonType == k_ELobbyComparisonEqual) {
|
||||||
PRINT_DEBUG("Equal\n");
|
if (compare_to == f.value_int) {
|
||||||
//use = use;
|
PRINT_DEBUG("Equal\n");
|
||||||
} else {
|
//use = use;
|
||||||
PRINT_DEBUG("Not Equal\n");
|
} else {
|
||||||
use = false;
|
PRINT_DEBUG("Not Equal\n");
|
||||||
|
use = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (...) {
|
||||||
|
//Same case as if the key is not in the lobby?
|
||||||
|
use = false;
|
||||||
}
|
}
|
||||||
//TODO: add more comparisons
|
//TODO: add more comparisons
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue