mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Fixing a bug in Pool class.
This commit is contained in:
parent
89ad68c27a
commit
c7ae6d23b1
@ -56,9 +56,10 @@ namespace Spine
|
||||
if (_objects.size() > 0)
|
||||
{
|
||||
T** object = _objects.begin();
|
||||
T* ret = *object;
|
||||
_objects.erase(0);
|
||||
|
||||
return *object;
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user