mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08: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
@ -1152,16 +1152,21 @@ void RunCallbacks()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
int compare_to = stoi(value->second, 0, 0);
|
||||
PRINT_DEBUG("Compare Values %i %i\n", compare_to, f.value_int);
|
||||
if (f.eComparisonType == k_ELobbyComparisonEqual) {
|
||||
if (compare_to == f.value_int) {
|
||||
PRINT_DEBUG("Equal\n");
|
||||
//use = use;
|
||||
} else {
|
||||
PRINT_DEBUG("Not Equal\n");
|
||||
use = false;
|
||||
try {
|
||||
int compare_to = std::stoi(value->second, 0, 0);
|
||||
PRINT_DEBUG("Compare Values %i %i\n", compare_to, f.value_int);
|
||||
if (f.eComparisonType == k_ELobbyComparisonEqual) {
|
||||
if (compare_to == f.value_int) {
|
||||
PRINT_DEBUG("Equal\n");
|
||||
//use = use;
|
||||
} else {
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user