mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Fix: it was still possible to resolve random items in the map editor
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5625 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1332,9 +1332,6 @@ OBJECTTYPE& OBJECTTYPE::operator=(const OLD_OBJECTTYPE_101& src)
|
||||
if ( GetItemFromRandomItem(src.usItem, &newitemfromrandom) )
|
||||
this->usItem = newitemfromrandom;
|
||||
|
||||
if ( Item[this->usItem].randomitem > 0 )
|
||||
this->usItem = NONE;
|
||||
|
||||
//and now the big change, the union
|
||||
//copy the old data, making sure not to write over, since the old size is actually 9 bytes
|
||||
if (ubNumberOfObjects == 1) {
|
||||
|
||||
Reference in New Issue
Block a user