Skip to content

Commit feff68d

Browse files
committed
v1.2a
1 parent a013a02 commit feff68d

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## Version 1.2a
4+
5+
Version: 1.2a
6+
Author: monkey0506
7+
Date: 29 March 2009
8+
Description: Fixed bug where `Stack.GetItemsArray` may request a 0-sized array.
9+
310
## Version 1.2
411

512
Version: 1.2

Stack.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ StackData MergeArray(this Stack*, StackData array[]) {
123123
}
124124

125125
StackData[] GetItemsArray(this Stack*) {
126-
if (this.Data == null) return null;
126+
if ((this.Data == null) || (!this.ItemCount)) return null;
127127
StackData items[] = new StackData[this.ItemCount];
128128
StackData buffer = this.Data;
129129
String format = StackDataFormat.Substring(0, StackDataFormat.IndexOf(":") + 1);

Stack.ash

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,19 @@ CONNECTION WITH THE MODULE OR THE USE OR OTHER DEALINGS IN THE MODULE.
358358
359359
# Changelog
360360
361+
## Version 1.2a
362+
363+
Version: 1.2a
364+
Author: monkey0506
365+
Date: 29 March 2009
366+
Description: Fixed bug where `Stack.GetItemsArray` may request a 0-sized array.
367+
361368
## Version 1.2
362369
363370
Version: 1.2
364371
Author: monkey0506
365372
Date: 28 March 2009
366-
Description: Added `Stack.GetItemsArray`, `File.WriteStack`, `File.ReadStackBack`, and
373+
Description: Added `Stack.GetItemsArray`, `File.WriteStack`, `File.ReadStackBack`, and
367374
`Stack.LoadFromFile` functions. The module now exports `StackDataFormat` so it can be used by other
368375
scripts for extending the module. It is not imported, it must be locally imported to the script
369376
requiring it. Modified the way `Stack.Copy` formats the data to better prevent collisions. Fixed a
@@ -376,7 +383,7 @@ getting increased. Added data type `eStackDataInvalid` to indicate that the obje
376383
Version: 1.0
377384
Author: monkey0506
378385
Date: 20 March 2009
379-
Description: First public release.
386+
Description: First public release.
380387
381388
\*******************************************/
382389

Stack.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<Name>Stack</Name>
44
<Description>The Stack module introduces a vectorized stack type into which you can place any type of data. Great if you need to store data of various different types, or all of one type; this module can handle all of your data storage needs!</Description>
55
<Author>monkey0506</Author>
6-
<Version>v1.2</Version>
6+
<Version>v1.2a</Version>
77
<Key>918333590</Key>
88
</AGSModule>

0 commit comments

Comments
 (0)