mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-01 01:16:03 -04:00
convert unsigned int to int, as the comparison to 0 would otherwise always eval to true
This commit is contained in:
Vendored
+1
-1
@@ -125,7 +125,7 @@ CSAssistGameAPIResult CSAssistGameAPITicket::setLocation(const CSAssistUnicodeCh
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
CSAssistGameAPIResult CSAssistGameAPITicket::setCategory(unsigned index, unsigned value)
|
||||
CSAssistGameAPIResult CSAssistGameAPITicket::setCategory(int index, unsigned value)
|
||||
//-----------------------------------------------------------
|
||||
{
|
||||
if (index < 0 || index >= (short)CSASSIST_NUM_CATEGORIES)
|
||||
|
||||
Vendored
+1
-1
@@ -33,7 +33,7 @@ public:
|
||||
CSAssistGameAPIResult setDetails(const CSAssistUnicodeChar *string);
|
||||
CSAssistGameAPIResult setLanguage(const CSAssistUnicodeChar *string);
|
||||
CSAssistGameAPIResult setLocation(const CSAssistUnicodeChar *string);
|
||||
CSAssistGameAPIResult setCategory(unsigned index, unsigned value);
|
||||
CSAssistGameAPIResult setCategory(int index, unsigned value);
|
||||
|
||||
CSAssistGameAPITicketID ticketID; // unique ID
|
||||
CSAssistGameAPIUID uid; // station UID
|
||||
|
||||
Reference in New Issue
Block a user