Fix TE_* natives operating on incorrect data for some tempents (bug 6072, r=fyren).
This commit is contained in:
		
							parent
							
								
									b3e2647dc4
								
							
						
					
					
						commit
						b4156a19c3
					
				| @ -118,16 +118,16 @@ int TempEntityInfo::_FindOffset(const char *name, int *size) | |||||||
| { | { | ||||||
| 	int offset; | 	int offset; | ||||||
| 
 | 
 | ||||||
| 	SendProp *prop = g_pGameHelpers->FindInSendTable(m_Sc->GetName(), name); | 	sm_sendprop_info_t info; | ||||||
| 	if (!prop) | 	if (!g_pGameHelpers->FindSendPropInfo(m_Sc->GetName(), name, &info)) | ||||||
| 	{ | 	{ | ||||||
| 		return -1; | 		return -1; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	offset = prop->GetOffset(); | 	offset = info.actual_offset; | ||||||
| 	if (size) | 	if (size) | ||||||
| 	{ | 	{ | ||||||
| 		*size = prop->m_nBits; | 		*size = info.prop->m_nBits; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	return offset; | 	return offset; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user