Fixed two issues pointed out in a PVS-Studio static code analyzer article (bug #5505).
This commit is contained in:
1 parent
c211114cb0
commit
2c5d0c1e3a
2 files changed
+5
-2
No files matched your search
@@ -842,7 +842,7 @@ void CG_RegisterItemVisuals( int itemNum ) {
|
||||
|
||||
item = &bg_itemlist[ itemNum ];
|
||||
|
||||
memset( itemInfo, 0, sizeof( &itemInfo ) );
|
||||
memset( itemInfo, 0, sizeof( *itemInfo ) );
|
||||
itemInfo->registered = qtrue;
|
||||
|
||||
itemInfo->models[0] = trap_R_RegisterModel( item->world_model[0] );
|
||||
|
||||
Reference in new issue
Block a user