Match CTextDrawPool::GetAt; two split guards hoist the zero arm ahead of the value arm

This commit is contained in:
ricardoofnl committed 2026-09-03 05:02:48 +07:00
1 parent 8b61418b8b
commit c7d3f4eb33
1 file changed
+7
+7
View File
@@ -21,6 +21,13 @@ private:
int field_0[MAX_TEXT_DRAWS];
int field_2400[MAX_TEXT_DRAWS];
public:
int GetAt(unsigned short TextDrawID)
{
if(TextDrawID >= MAX_TEXT_DRAWS) return 0;
if(!field_0[TextDrawID]) return 0;
return field_2400[TextDrawID];
}
CTextDrawPool();
void FUNC_1001E7F0(unsigned short TextDrawID); // .text:1001E7F0