mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
Match CTextDrawPool::GetAt; two split guards hoist the zero arm ahead of the value arm
This commit is contained in:
1 parent
8b61418b8b
commit
c7d3f4eb33
1 file changed
+7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user