mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-04-24 10:08:52 +00:00
- fixed issue with UniqueList
Added memset after creation of new pointer. This was causing massive drop of framerate when looking outside, with multiple glskyinfo object created, memcmp always failed with return -1 when dealing with GLSkyInfo
This commit is contained in:
parent
71543d81cd
commit
e8194dbb01
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ public:
|
|||
if (!memcmp(t, Array[i], sizeof(T))) return Array[i];
|
||||
}
|
||||
T * newo=TheFreeList.GetNew();
|
||||
|
||||
memset(newo, 0, sizeof(T));
|
||||
*newo=*t;
|
||||
Array.Push(newo);
|
||||
return newo;
|
||||
|
|
Loading…
Reference in a new issue