Fix some compile errors in new-style includes.

This commit is contained in:
David Anderson 2014-12-10 02:12:53 -08:00
parent a9e252314d
commit 18cc1b414b
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;