Fix: Spreadpatterns did never work since their externalization. Now they should work.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7624 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2014-11-01 13:31:51 +00:00
parent 8857e0772b
commit 62cb6f44fa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ INT32 GetSpreadPattern( OBJECTTYPE * pObj )
//If there are attachments, check them. Stop on the first one with something defined.
//Dear God, I hate C++ iterators. What a fugly mess. //WarmSteel - I made it even messier ;3
for (attachmentList::iterator iter = pObj[0][0]->attachments.begin(); iter != pObj[0][0]->attachments.end(); ++iter){
if( n=Item[ iter->usItem ].spreadPattern && iter->exists()){
if( (n=Item[ iter->usItem ].spreadPattern) && iter->exists()){
//An attachment has it, and it trumps everything, so return it's value.
return n;}
}