We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b538813 commit 63868c7Copy full SHA for 63868c7
src/xrGame/ui/Restrictions.cpp
@@ -31,7 +31,13 @@ u32 get_rank(const shared_str& section)
31
}
32
33
34
- R_ASSERT3(res != -1, "cannot find rank for", section.c_str());
+ if (res == -1)
35
+ {
36
+ Msg("Setting rank to 0. Cannot find rank for: [%s]", section.c_str());
37
+ // Xottab_DUTY: I'm not sure if it's save to leave it -1
38
+ res = 0;
39
+ }
40
+ //R_ASSERT3(res != -1, "cannot find rank for", section.c_str());
41
return res;
42
43
0 commit comments