Fix memalloc error in nodegraph.c

master
fgsfds 2020-02-29 04:49:35 +03:00
parent 9671430a5c
commit ae8a4c06f2
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ static qboolean nodegraph_graph_rebuild_floyd_warshall_matrices(void)
{
short graphid, i, j, k;
float *floyd_matrix_measures = (float *)Mem_Alloc(tempmempool, NODEGRAPH_NODES_COUNT_LIMIT * NODEGRAPH_NODES_COUNT_LIMIT);
float *floyd_matrix_measures = (float *)Mem_Alloc(tempmempool, NODEGRAPH_NODES_COUNT_LIMIT * NODEGRAPH_NODES_COUNT_LIMIT * sizeof(float));
if (!floyd_matrix_measures)
{