plugins/nextmap.sp
changeset 1750 0f73390b01be
parent 1745 6f11b5b0241f
child 1783 e6e2f440376d
     1.1 --- a/plugins/nextmap.sp	Mon Dec 03 02:43:42 2007 +0000
     1.2 +++ b/plugins/nextmap.sp	Mon Dec 03 03:19:21 2007 +0000
     1.3 @@ -195,7 +195,12 @@
     1.4  	}
     1.5  	
     1.6  	decl String:type[15];
     1.7 -	BfReadString(bf, type, sizeof(type));
     1.8 +
     1.9 +	/* If we don't get a valid string, bail out. */
    1.10 +	if (BfReadString(bf, type, sizeof(type)) < 0)
    1.11 +	{
    1.12 +		return Plugin_Handled;
    1.13 +	}
    1.14   
    1.15  	if (BfReadByte(bf) == 1 && BfReadByte(bf) == 0 && (strcmp(type, "scores", false) == 0))
    1.16  	{