Fix some compile errors in new-style includes.
This commit is contained in:
parent
a9e252314d
commit
18cc1b414b
@ -251,7 +251,7 @@ stock FindTarget(client, const String:target[], bool:nobots = false, bool:immuni
|
||||
|
||||
int len;
|
||||
char buffer[64];
|
||||
while (!file.IsEndOfFile() && file.ReadLine(buffer, sizeof(buffer)))
|
||||
while (!file.EndOfFile() && file.ReadLine(buffer, sizeof(buffer)))
|
||||
{
|
||||
TrimString(buffer);
|
||||
|
||||
|
@ -155,7 +155,7 @@ methodmap Regex < Handle
|
||||
*/
|
||||
stock int SimpleRegexMatch(const char[] str, const char[] pattern, int flags = 0, char[] error="", int maxLen = 0)
|
||||
{
|
||||
Regex regex = Regex(pattern, flags, error, maxLen);
|
||||
Regex regex = new Regex(pattern, flags, error, maxLen);
|
||||
if (!regex)
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user