OSDN Git Service

Allow nested calls to begin().
authorNathanSweet <nathan.sweet@gmail.com>
Tue, 28 May 2013 22:41:41 +0000 (00:41 +0200)
committerNathanSweet <nathan.sweet@gmail.com>
Tue, 28 May 2013 22:41:41 +0000 (00:41 +0200)
gdx/src/com/badlogic/gdx/utils/SnapshotArray.java

index e3b3773..de24369 100644 (file)
@@ -74,6 +74,7 @@ public class SnapshotArray<T> extends Array<T> {
 \r
        /** Returns the backing array, which is guaranteed to not be modified before {@link #end()}. */\r
        public T[] begin () {\r
+               modified();\r
                snapshot = items;\r
                snapshots++;\r
                return items;\r