Fix possible crash when unloading cstrike extension. (irc, r=KyleS)
This commit is contained in:
		
							parent
							
								
									c546e59c80
								
							
						
					
					
						commit
						9223c714b3
					
				| @ -502,8 +502,8 @@ static cell_t CS_GetWeaponPrice(IPluginContext *pContext, const cell_t *params) | |||||||
| 			ret.type = PassType_Basic; | 			ret.type = PassType_Basic; | ||||||
| 			ret.size = sizeof(void *); | 			ret.size = sizeof(void *); | ||||||
| 
 | 
 | ||||||
| 			g_RegNatives.Register(pGetView); |  | ||||||
| 			pGetView = g_pBinTools->CreateVCall(offset, 0, 0, &ret, pass, 2); | 			pGetView = g_pBinTools->CreateVCall(offset, 0, 0, &ret, pass, 2); | ||||||
|  | 			g_RegNatives.Register(pGetView); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user