1
0
mirror of https://github.com/w23/xash3d-fwgs synced 2024-12-15 21:50:59 +01:00

engine: common: fix array underrun

This commit is contained in:
Alibek Omarov 2022-05-25 03:38:19 +03:00
parent 924e895753
commit 843c9abf9b

View File

@ -1008,7 +1008,7 @@ void Host_InitCommon( int argc, char **argv, const char *progname, qboolean bCha
len = Q_strlen( host.rootdir );
if( host.rootdir[len - 1] == '/' )
if( len && host.rootdir[len - 1] == '/' )
host.rootdir[len - 1] = 0;
// get readonly root. The order is: check for arg, then env.