Skip to content

Commit ee110e1

Browse files
committed
Fix for bug #237
Fix for issue #237 where unload did not work correctly in conjunction with manual loading
1 parent 0040492 commit ee110e1

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

UniversalAutoload.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4725,7 +4725,9 @@ function UniversalAutoload:addLoadedObject(object)
47254725
local spec = self.spec_universalAutoload
47264726

47274727
if spec.loadedObjects[object] == nil and (not UniversalAutoload.isValidForManualLoading(object)
4728-
or (object.isSplitShape and spec.autoLoadingObjects[object] == nil)) then
4728+
or (not spec.enableSideLoading and not spec.enableRearLoading)
4729+
or (object.isSplitShape and spec.autoLoadingObjects[object] == nil)
4730+
) then
47294731
spec.loadedObjects[object] = object
47304732
spec.objectToLoadingAreaIndex[object] = spec.currentLoadAreaIndex or 1
47314733
spec.totalUnloadCount = spec.totalUnloadCount + 1

modDesc.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modDesc descVersion="80">
33

44
<author>loki_79</author>
5-
<version>1.5.2.1</version>
5+
<version>1.5.2.2</version>
66

77
<title>
88
<en>Universal Autoload</en>

0 commit comments

Comments
 (0)